Skip to main content
Version: 4.4

Class: BlobType#

core.BlobType

Hierarchy#

  • Type<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:#

NameType
valueBuffer
platformPlatform

Returns: Buffer

Overrides: Type

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


convertToJSValue#

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

Parameters:#

NameType
valueBuffer
platformPlatform

Returns: null | Buffer

Overrides: Type

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


getColumnType#

getColumnType(prop: EntityProperty<any>, platform: Platform): string

Parameters:#

NameType
propEntityProperty<any>
platformPlatform

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:#

NameType
valuenull | Buffer
platformPlatform

Returns: null | Buffer

Inherited from: Type

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


getType#

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

Type parameters:#

Name
JSType
DBType

Parameters:#

NameType
clsConstructor<Type<JSType, DBType>>

Returns: Type<JSType, DBType>

Inherited from: Type

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

Last updated on by renovate[bot]