Skip to main content
Version: 6.2

FullTextType

Hierarchy

Index

Constructors

constructor

  • Parameters

    • regconfig: string = 'simple'

    Returns FullTextType

Properties

optionalmeta

meta?: EntityMetadata<any>

optionalplatform

platform?: Platform

optionalprop

prop?: EntityProperty<any, any>

publicregconfig

regconfig: string = 'simple'

Accessors

name

  • get name(): string
  • Returns string

runtimeType

  • get runtimeType(): string
  • Returns string

Methods

compareAsType

  • compareAsType(): string
  • How should the raw database values be compared? Used in EntityComparator. Possible values: string | number | bigint | boolean | date | any | buffer | array


    Returns string

optionalcompareValues

  • Allows to override the internal comparison logic.


    Parameters

    Returns boolean

convertToDatabaseValue

optionalconvertToDatabaseValueSQL

  • convertToDatabaseValueSQL(key: string, platform: Platform): string
  • Converts a value from its JS representation to its database representation of this type.


    Parameters

    Returns string

convertToJSValue

  • Converts a value from its database representation to its JS representation of this type.


    Parameters

    Returns string | WeightedFullTextValue

optionalconvertToJSValueSQL

  • convertToJSValueSQL(key: string, platform: Platform): string
  • Modifies the SQL expression (identifier, parameter) to convert to a JS value.


    Parameters

    Returns string

ensureComparable

  • When a value is hydrated, we convert it back to the database value to ensure comparability, as often the raw database response is not the same as the convertToDatabaseValue result. This allows to disable the additional conversion in case you know it is not needed.


    Type parameters

    • T: object

    Parameters

    Returns boolean

getColumnType

  • getColumnType(): string
  • Gets the SQL declaration snippet for a field of this type.


    Returns string

toJSON

staticgetType

  • Type parameters

    • JSType
    • DBType = JSType

    Parameters

    Returns Type<JSType, DBType>

staticisMappedType

  • isMappedType(data: any): data is Type<any, any>
  • Checks whether the argument is instance of Type.


    Parameters

    • data: any

    Returns data is Type<any, any>