Version: 4.3

Class: BlobType

Hierarchy

  • Type<Buffer | null>

    BlobType

Methods

compareAsType

compareAsType(): string

Overrides Type.compareAsType

Defined in packages/core/src/types/BlobType.ts:25

Returns: string


convertToDatabaseValue

convertToDatabaseValue(value: Buffer, platform: Platform): Buffer

Overrides Type.convertToDatabaseValue

Defined in packages/core/src/types/BlobType.ts:7

Parameters:

NameType
valueBuffer
platformPlatform

Returns: Buffer


convertToJSValue

convertToJSValue(value: Buffer, platform: Platform): Buffer | null

Overrides Type.convertToJSValue

Defined in packages/core/src/types/BlobType.ts:11

Parameters:

NameType
valueBuffer
platformPlatform

Returns: Buffer | null


getColumnType

getColumnType(prop: EntityProperty, platform: Platform): string

Overrides Type.getColumnType

Defined in packages/core/src/types/BlobType.ts:29

Parameters:

NameType
propEntityProperty
platformPlatform

Returns: string


toJSON

toJSON(value: Buffer | null, platform: Platform): Buffer | null | JSType

Inherited from Type.toJSON

Defined in packages/core/src/types/Type.ts:34

Converts a value from its JS representation to its serialized JSON form of this type. By default uses the runtime value.

Parameters:

NameType
valueBuffer | null
platformPlatform

Returns: Buffer | null | JSType


getType

StaticgetType<JSType, DBType>(cls: Constructor<Type<JSType, DBType>>): Type<JSType, DBType>

Inherited from Type.getType

Defined in packages/core/src/types/Type.ts:46

Type parameters:

Name
JSType
DBType

Parameters:

NameType
clsConstructor<Type<JSType, DBType>>

Returns: Type<JSType, DBType>

Last updated on by Martin Adámek