#
Class: BlobTypecore.BlobType
#
HierarchyType<Buffer | null>
↳ BlobType
#
Constructors#
constructor+ new BlobType(): BlobType
Returns: BlobType
Inherited from: Type
#
Methods#
compareAsTypeâ–¸ compareAsType(): string
Returns: string
Overrides: Type
Defined in: packages/core/src/types/BlobType.ts:25
#
convertToDatabaseValueâ–¸ convertToDatabaseValue(value
: Buffer, platform
: Platform): Buffer
#
Parameters:Name | Type |
---|---|
value | Buffer |
platform | Platform |
Returns: Buffer
Overrides: Type
Defined in: packages/core/src/types/BlobType.ts:7
#
convertToJSValueâ–¸ convertToJSValue(value
: Buffer, platform
: Platform): null | Buffer
#
Parameters:Name | Type |
---|---|
value | Buffer |
platform | Platform |
Returns: null | Buffer
Overrides: Type
Defined in: packages/core/src/types/BlobType.ts:11
#
getColumnTypeâ–¸ getColumnType(prop
: EntityProperty<any>, platform
: Platform): string
#
Parameters:Name | Type |
---|---|
prop | EntityProperty<any> |
platform | Platform |
Returns: string
Overrides: Type
Defined in: packages/core/src/types/BlobType.ts:29
#
toJSONâ–¸ toJSON(value
: null | Buffer, platform
: Platform): null | Buffer
Converts a value from its JS representation to its serialized JSON form of this type. By default uses the runtime value.
#
Parameters:Name | Type |
---|---|
value | null | Buffer |
platform | Platform |
Returns: null | Buffer
Inherited from: Type
Defined in: packages/core/src/types/Type.ts:34
#
getTypeâ–¸ Static
getType<JSType, DBType>(cls
: Constructor<Type<JSType, DBType>>): Type<JSType, DBType>
#
Type parameters:Name |
---|
JSType |
DBType |
#
Parameters:Name | Type |
---|---|
cls | Constructor<Type<JSType, DBType>> |
Returns: Type<JSType, DBType>
Inherited from: Type
Defined in: packages/core/src/types/Type.ts:46