IntervalType
Hierarchy
- Type<string | null | undefined, string | null | undefined>- IntervalType
 
Index
Constructors
constructor
- Returns IntervalType
Properties
optionalinheritedmeta
optionalinheritedplatform
optionalinheritedprop
Accessors
inheritedname
- Returns string
inheritedruntimeType
- Returns string
Methods
inheritedcompareAsType
- Returns string
optionalinheritedcompareValues
- Allows to override the internal comparison logic. - Parameters- a: undefined | null | string
- b: undefined | null | string
 - Returns boolean
convertToDatabaseValue
- Converts a value from its JS representation to its database representation of this type. - Parameters- value: undefined | null | string
- platform: Platform
 - Returns undefined | null | string
optionalinheritedconvertToDatabaseValueSQL
- Converts a value from its JS representation to its database representation of this type. - Parameters- key: string
- platform: Platform
 - Returns string
convertToJSValue
- Converts a value from its database representation to its JS representation of this type. - Parameters- value: undefined | null | string
- platform: Platform
 - Returns undefined | null | string
optionalinheritedconvertToJSValueSQL
- Modifies the SQL expression (identifier, parameter) to convert to a JS value. - Parameters- key: string
- platform: Platform
 - Returns string
inheritedensureComparable
- 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 - convertToDatabaseValueresult. This allows to disable the additional conversion in case you know it is not needed.- Parameters- meta: EntityMetadata<T>
- prop: EntityProperty<T, any>
 - Returns boolean
getColumnType
- Gets the SQL declaration snippet for a field of this type. - Parameters- prop: EntityProperty<any, any>
- platform: Platform
 - Returns string
getDefaultLength
- Get the default length for values of this type - When doing schema generation, if neither "length" nor "columnType" option is provided, the length will be defaulted to this value. - When doing entity generation, if the type is recognized to this type, and the inferred length is this value, the length option will be omitted in the output. If this method is not defined, length is always outputted based on what is in the database metadata. - Parameters- platform: Platform- The platform the default will be used for. 
 - Returns number- The default value for the given platform. 
inheritedtoJSON
- Converts a value from its JS representation to its serialized JSON form of this type. By default uses the runtime value. - Parameters- value: undefined | null | string
- platform: Platform
 - Returns undefined | null | string
staticinheritedgetType
- Parameters- cls: TypeClass
 - Returns InstanceType<TypeClass>
staticinheritedisMappedType
- Checks whether the argument is instance of - Type.- Parameters- data: any
 - Returns data is Type<any, any>
How should the raw database values be compared? Used in
EntityComparator. Possible values: string | number | bigint | boolean | date | any | buffer | array