Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
integer
Function integer
integer
()
:
SQLiteIntegerBuilderInitial
<
""
>
Returns
SQLiteIntegerBuilderInitial
<
""
>
integer
<
TMode
extends
"number"
|
"boolean"
|
"timestamp"
|
"timestamp_ms"
>
(
config
?:
IntegerConfig
<
TMode
>
,
)
:
Or
<
Equal
<
TMode
,
"timestamp"
>
,
Equal
<
TMode
,
"timestamp_ms"
>
>
extends
true
?
SQLiteTimestampBuilderInitial
<
""
>
:
Equal
<
TMode
,
"boolean"
>
extends
true
?
SQLiteBooleanBuilderInitial
<
""
>
:
SQLiteIntegerBuilderInitial
<
""
>
Type Parameters
TMode
extends
"number"
|
"boolean"
|
"timestamp"
|
"timestamp_ms"
Parameters
Optional
config
:
IntegerConfig
<
TMode
>
Returns
Or
<
Equal
<
TMode
,
"timestamp"
>
,
Equal
<
TMode
,
"timestamp_ms"
>
>
extends
true
?
SQLiteTimestampBuilderInitial
<
""
>
:
Equal
<
TMode
,
"boolean"
>
extends
true
?
SQLiteBooleanBuilderInitial
<
""
>
:
SQLiteIntegerBuilderInitial
<
""
>
integer
<
TName
extends
string
,
TMode
extends
"number"
|
"boolean"
|
"timestamp"
|
"timestamp_ms"
,
>
(
name
:
TName
,
config
?:
IntegerConfig
<
TMode
>
,
)
:
Or
<
Equal
<
TMode
,
"timestamp"
>
,
Equal
<
TMode
,
"timestamp_ms"
>
>
extends
true
?
SQLiteTimestampBuilderInitial
<
TName
>
:
Equal
<
TMode
,
"boolean"
>
extends
true
?
SQLiteBooleanBuilderInitial
<
TName
>
:
SQLiteIntegerBuilderInitial
<
TName
>
Type Parameters
TName
extends
string
TMode
extends
"number"
|
"boolean"
|
"timestamp"
|
"timestamp_ms"
Parameters
name
:
TName
Optional
config
:
IntegerConfig
<
TMode
>
Returns
Or
<
Equal
<
TMode
,
"timestamp"
>
,
Equal
<
TMode
,
"timestamp_ms"
>
>
extends
true
?
SQLiteTimestampBuilderInitial
<
TName
>
:
Equal
<
TMode
,
"boolean"
>
extends
true
?
SQLiteBooleanBuilderInitial
<
TName
>
:
SQLiteIntegerBuilderInitial
<
TName
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...