Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
customType
Function customType
customType
<
T
extends
CustomTypeValues
=
CustomTypeValues
>
(
customTypeParams
:
CustomTypeParams
<
T
>
,
)
:
Equal
<
T
[
"configRequired"
]
,
true
>
extends
true
?
{
<
TConfig
extends
Record
<
string
,
any
>
>
(
fieldConfig
:
TConfig
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TName
extends
string
>
(
dbName
:
TName
,
fieldConfig
:
T
[
"config"
]
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
TName
,
T
>
>
;
}
:
{
()
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TConfig
extends
Record
<
string
,
any
>
>
(
fieldConfig
?:
TConfig
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TName
extends
string
>
(
dbName
:
TName
,
fieldConfig
?:
T
[
"config"
]
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
TName
,
T
>
>
;
}
Custom sqlite database data type generator
Type Parameters
T
extends
CustomTypeValues
=
CustomTypeValues
Parameters
customTypeParams
:
CustomTypeParams
<
T
>
Returns
Equal
<
T
[
"configRequired"
]
,
true
>
extends
true
?
{
<
TConfig
extends
Record
<
string
,
any
>
>
(
fieldConfig
:
TConfig
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TName
extends
string
>
(
dbName
:
TName
,
fieldConfig
:
T
[
"config"
]
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
TName
,
T
>
>
;
}
:
{
()
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TConfig
extends
Record
<
string
,
any
>
>
(
fieldConfig
?:
TConfig
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
""
,
T
>
>
;
<
TName
extends
string
>
(
dbName
:
TName
,
fieldConfig
?:
T
[
"config"
]
,
)
:
SQLiteCustomColumnBuilder
<
ConvertCustomConfig
<
TName
,
T
>
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...
Custom sqlite database data type generator