Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
SQLiteTable
Class SQLiteTable<T>
Type Parameters
T
extends
TableConfig
=
TableConfig
Hierarchy
Table
<
T
>
SQLiteTable
Index
Constructors
constructor
Properties
_
$infer
Insert
$infer
Select
[entity
Kind]
Methods
get
SQL
should
Omit
SQL
Parens?
Constructors
constructor
new
SQLiteTable
<
T
extends
TableConfig
=
TableConfig
>
(
name
:
string
,
schema
:
string
|
undefined
,
baseName
:
string
,
)
:
SQLiteTable
<
T
>
Type Parameters
T
extends
TableConfig
=
TableConfig
Parameters
name
:
string
schema
:
string
|
undefined
baseName
:
string
Returns
SQLiteTable
<
T
>
Properties
Readonly
_
_
:
{
brand
:
"Table"
;
columns
:
T
[
"columns"
]
;
config
:
T
;
inferInsert
:
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
Key
in
string
as
RequiredKeyOnly
<
Key
,
T
[
"columns"
]
[
Key
]
>
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
:
(...)
[
(...)
]
[
Key
]
[
"_"
]
[
"data"
]
|
null
}
&
{
[
Key
in
string
as
OptionalKeyOnly
<
Key
,
T
[
"columns"
]
[
Key
]
,
false
>
]
?:
(
...
)
[
(...)
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
(...)
[
(...)
]
[
Key
]
[
"_"
]
[
"data"
]
:
(...)
[
(...)
]
[
"_"
]
[
"data"
]
|
null
}
)
[
K
]
}
;
inferSelect
:
{
[
K
in
string
]
:
{
[
Key
in
string
as
Key
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
|
null
}
[
K
]
}
;
name
:
T
[
"name"
]
;
schema
:
T
[
"schema"
]
;
}
Readonly
$infer
Insert
$inferInsert
:
{
[
K
in
string
|
number
|
symbol
]
:
(
{
[
Key
in
string
as
RequiredKeyOnly
<
Key
,
T
[
"columns"
]
[
Key
]
>
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
|
null
}
&
{
[
Key
in
string
as
OptionalKeyOnly
<
Key
,
T
[
"columns"
]
[
Key
]
,
false
>
]
?:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
:
(...)
[
(...)
]
[
Key
]
[
"_"
]
[
"data"
]
|
null
}
)
[
K
]
}
Readonly
$infer
Select
$inferSelect
:
{
[
K
in
string
]
:
{
[
Key
in
string
as
Key
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"notNull"
]
extends
true
?
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
:
T
[
"columns"
]
[
Key
]
[
"_"
]
[
"data"
]
|
null
}
[
K
]
}
Static
Readonly
[entity
Kind]
"[entityKind]"
:
string
Methods
get
SQL
getSQL
()
:
SQL
Returns
SQL
Optional
should
Omit
SQL
Parens
shouldOmitSQLParens
?
()
:
boolean
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
$infer
Insert
$infer
Select
[entity
Kind]
Methods
get
SQL
should
Omit
SQL
Parens
Documentation
Loading...