MySqlTableBuilder
Hierarchy
- TableBuilder
- MySqlTableBuilder
Index
Methods
- bigIncrements
- bigint
- bigInteger
- binary
- boolean
- check
- comment
- date
- datetime
- dateTime
- decimal
- double
- dropChecks
- dropColumn
- dropColumns
- dropForeign
- dropIndex
- dropNullable
- dropPrimary
- dropTimestamps
- dropUnique
- enu
- enum
- float
- foreign
- geography
- geometry
- increments
- index
- integer
- json
- jsonb
- mediumint
- point
- primary
- queryContext
- renameColumn
- setNullable
- smallint
- specificType
- string
- text
- time
- timestamp
- timestamps
- tinyint
- unique
- uuid
Methods
bigIncrements
Parameters
optionalcolumnName: string
optionaloptions: MySqlIncrementOptions
Returns ColumnBuilder
inheritedbigint
Parameters
columnName: string
Returns ColumnBuilder
inheritedbigInteger
Parameters
columnName: string
Returns ColumnBuilder
inheritedbinary
Parameters
columnName: string
optionallength: number
Returns ColumnBuilder
inheritedboolean
Parameters
columnName: string
Returns ColumnBuilder
inheritedcheck
Parameters
checkPredicate: string
optionalbindings: Record<string, any>
optionalconstraintName: string
Returns TableBuilder
inheritedcomment
Parameters
val: string
Returns void
inheriteddate
Parameters
columnName: string
Returns ColumnBuilder
inheriteddatetime
Parameters
columnName: string
optionaloptions: Readonly<{ precision?: number; useTz?: boolean }>
Returns ColumnBuilder
inheriteddateTime
Parameters
columnName: string
optionaloptions: Readonly<{ precision?: number; useTz?: boolean }>
Returns ColumnBuilder
inheriteddecimal
Parameters
columnName: string
optionalprecision: null | number
optionalscale: number
Returns ColumnBuilder
inheriteddouble
Parameters
columnName: string
optionalprecision: number
optionalscale: number
Returns ColumnBuilder
inheriteddropChecks
Parameters
checkConstraintNames: string | string[]
Returns TableBuilder
inheriteddropColumn
Parameters
columnName: string
Returns TableBuilder
inheriteddropColumns
Parameters
rest...columnNames: string[]
Returns TableBuilder
inheriteddropForeign
Parameters
columnNames: string | readonly string[]
optionalforeignKeyName: string
Returns TableBuilder
inheriteddropIndex
Parameters
columnNames: string | readonly (string | Raw<any>)[]
optionalindexName: string
Returns TableBuilder
inheriteddropNullable
Parameters
column: string
Returns TableBuilder
inheriteddropPrimary
Parameters
optionalconstraintName: string
Returns TableBuilder
inheriteddropTimestamps
Parameters
optionaluseCamelCase: boolean
Returns TableBuilder
inheriteddropUnique
Parameters
columnNames: readonly (string | Raw<any>)[]
optionalindexName: string
Returns TableBuilder
inheritedenu
Parameters
columnName: string
values: null | readonly Value[]
optionaloptions: EnumOptions
Returns ColumnBuilder
inheritedenum
Parameters
columnName: string
values: null | readonly Value[]
optionaloptions: EnumOptions
Returns ColumnBuilder
inheritedfloat
Parameters
columnName: string
optionalprecision: number
optionalscale: number
Returns ColumnBuilder
inheritedforeign
Parameters
column: string
optionalforeignKeyName: string
Returns ForeignConstraintBuilder
inheritedgeography
Parameters
columnName: string
Returns ColumnBuilder
inheritedgeometry
Parameters
columnName: string
Returns ColumnBuilder
increments
Parameters
optionalcolumnName: string
optionaloptions: MySqlIncrementOptions
Returns ColumnBuilder
inheritedindex
Parameters
columnNames: string | readonly (string | Raw<any>)[]
optionalindexName: string
optionalindexType: string
Returns TableBuilder
inheritedinteger
Parameters
columnName: string
optionallength: number
Returns ColumnBuilder
inheritedjson
Parameters
columnName: string
Returns ColumnBuilder
inheritedjsonb
Parameters
columnName: string
Returns ColumnBuilder
inheritedmediumint
Parameters
columnName: string
Returns ColumnBuilder
inheritedpoint
Parameters
columnName: string
Returns ColumnBuilder
inheritedprimary
Parameters
columnNames: readonly string[]
optionaloptions: Readonly<{ constraintName?: string; deferrable?: deferrableType }>
Returns TableBuilder
inheritedqueryContext
Parameters
context: any
Returns TableBuilder
inheritedrenameColumn
Parameters
from: string
to: string
Returns TableBuilder
inheritedsetNullable
Parameters
column: string
Returns TableBuilder
inheritedsmallint
Parameters
columnName: string
Returns ColumnBuilder
inheritedspecificType
Parameters
columnName: string
type: string
Returns ColumnBuilder
inheritedstring
Parameters
columnName: string
optionallength: number
Returns ColumnBuilder
inheritedtext
Parameters
columnName: string
optionaltextType: string
Returns ColumnBuilder
inheritedtime
Parameters
columnName: string
Returns ColumnBuilder
inheritedtimestamp
Parameters
columnName: string
optionaloptions: Readonly<{ precision?: number; useTz?: boolean }>
Returns ColumnBuilder
inheritedtimestamps
Parameters
optionaluseTimestamps: boolean
optionaldefaultToNow: boolean
optionaluseCamelCase: boolean
Returns ColumnBuilder
inheritedtinyint
Parameters
columnName: string
optionallength: number
Returns ColumnBuilder
inheritedunique
Parameters
columnNames: string | readonly (string | Raw<any>)[]
optionaloptions: Readonly<{ deferrable?: deferrableType; indexName?: string; predicate?: QueryBuilder<any, any>; storageEngineIndexType?: string; useConstraint?: boolean }>
Returns TableBuilder
inheriteduuid
Parameters
columnName: string
optionaloptions: Readonly<{ primaryKey?: boolean; useBinaryUuid?: boolean }>
Returns ColumnBuilder