Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
ForeignKeyBuilder
Class ForeignKeyBuilder
Index
Constructors
constructor
Properties
_
[entity
Kind]
Methods
on
Delete
on
Update
Constructors
constructor
new
ForeignKeyBuilder
(
config
:
()
=>
{
columns
:
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
[]
;
foreignColumns
:
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
,
>
[]
;
name
?:
string
;
}
,
actions
?:
{
onDelete
?:
UpdateDeleteAction
;
onUpdate
?:
UpdateDeleteAction
}
,
)
:
ForeignKeyBuilder
Parameters
config
:
()
=>
{
columns
:
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
[]
;
foreignColumns
:
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
,
>
[]
;
name
?:
string
;
}
Optional
actions
:
{
onDelete
?:
UpdateDeleteAction
;
onUpdate
?:
UpdateDeleteAction
}
Returns
ForeignKeyBuilder
Properties
_
_
:
{
brand
:
"SQLiteForeignKeyBuilder"
;
foreignTableName
:
"TForeignTableName"
}
Static
Readonly
[entity
Kind]
"[entityKind]"
:
string
Methods
on
Delete
onDelete
(
action
:
UpdateDeleteAction
)
:
this
Parameters
action
:
UpdateDeleteAction
Returns
this
on
Update
onUpdate
(
action
:
UpdateDeleteAction
)
:
this
Parameters
action
:
UpdateDeleteAction
Returns
this
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
[entity
Kind]
Methods
on
Delete
on
Update
Documentation
Loading...