Preparing search index...
The search index is not available
Typegres API Reference - v0.0.1
Typegres API Reference
FromItem
Class FromItem<F, J>
Type Parameters
F
extends
RowLike
=
RowLike
J
extends
Joins
=
Joins
Hierarchy (
View Summary
)
FromItem
Values
Implements
WithFromItem
<
F
,
J
>
Index
Constructors
constructor
Properties
from
from
Alias
join
Aliases
joins
raw
From
Expr
Methods
as
as
Class
as
From
Item
compile
compile
Just
From
full
Outer
Join
get
Context
join
join
Tables
join
With
Type
left
Join
right
Join
select
table
Column
Alias
to
Select
Args
of
of
Schema
Constructors
constructor
new
FromItem
<
F
extends
object
=
object
,
J
extends
Joins
=
Joins
>
(
rawFromExpr
:
Expression
,
fromAlias
:
QueryAlias
,
joinAliases
:
{
[
key
:
string
]:
QueryAlias
}
,
from
:
F
,
joins
?:
J
,
)
:
FromItem
<
F
,
J
>
Type Parameters
F
extends
object
=
object
J
extends
Joins
=
Joins
Parameters
rawFromExpr
:
Expression
fromAlias
:
QueryAlias
joinAliases
:
{
[
key
:
string
]:
QueryAlias
}
from
:
F
joins
:
J
= ...
Returns
FromItem
<
F
,
J
>
Properties
from
from
:
F
from
Alias
fromAlias
:
QueryAlias
join
Aliases
joinAliases
:
{
[
key
:
string
]:
QueryAlias
}
joins
joins
:
J
= ...
raw
From
Expr
rawFromExpr
:
Expression
Methods
as
as
<
A
extends
string
>
(
alias
:
A
)
:
FromItem
<
F
,
J
>
Type Parameters
A
extends
string
Parameters
alias
:
A
Returns
FromItem
<
F
,
J
>
as
Class
asClass
<
E
extends
object
>
(
this
:
FromItem
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
,
J
>
,
)
:
Table
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
,
RowImpl
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
>
&
E
,
>
Type Parameters
E
extends
object
Parameters
this
:
FromItem
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
,
J
>
Returns
Table
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
,
RowImpl
<
F
extends
RowLikeStrict
?
F
<
F
>
:
never
>
&
E
,
>
as
From
Item
asFromItem
()
:
FromItem
<
F
,
J
>
Returns
FromItem
<
F
,
J
>
compile
compile
(
ctx
:
Context
)
:
RawBuilder
<
unknown
>
Parameters
ctx
:
Context
Returns
RawBuilder
<
unknown
>
compile
Just
From
compileJustFrom
(
ctx
:
Context
,
alias
?:
string
)
:
RawBuilder
<
unknown
>
Parameters
ctx
:
Context
Optional
alias
:
string
Returns
RawBuilder
<
unknown
>
full
Outer
Join
fullOuterJoin
<
F2
extends
object
,
A
extends
string
>
(
this
:
WithFromItem
<
F
,
J
>
,
j
:
WithFromItem
<
F2
>
,
as
:
A
,
on
:
(
from
:
MakeRowNullable
<
F
>
,
js
:
JoinTables
<
MakeJoinsNullable
<
J
>
>
&
{
[
a
in
string
]
:
MakeRowNullable
<
F2
>
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
,
)
:
FromItem
<
MakeRowNullable
<
F
>
,
MakeJoinsNullable
<
J
>
&
{
[
a
in
string
]
:
{
on
:
Bool
<
0
|
1
>
;
row
:
MakeRowNullable
<
F2
>
;
table
:
WithFromItem
<
F2
>
;
type
:
"FULL OUTER JOIN"
;
}
}
,
>
Type Parameters
F2
extends
object
A
extends
string
Parameters
this
:
WithFromItem
<
F
,
J
>
j
:
WithFromItem
<
F2
>
as
:
A
on
:
(
from
:
MakeRowNullable
<
F
>
,
js
:
JoinTables
<
MakeJoinsNullable
<
J
>
>
&
{
[
a
in
string
]
:
MakeRowNullable
<
F2
>
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
Returns
FromItem
<
MakeRowNullable
<
F
>
,
MakeJoinsNullable
<
J
>
&
{
[
a
in
string
]
:
{
on
:
Bool
<
0
|
1
>
;
row
:
MakeRowNullable
<
F2
>
;
table
:
WithFromItem
<
F2
>
;
type
:
"FULL OUTER JOIN"
;
}
}
,
>
get
Context
getContext
(
ctxIn
:
Context
)
:
Context
Parameters
ctxIn
:
Context
Returns
Context
join
join
<
F2
extends
object
,
A
extends
string
>
(
j
:
WithFromItem
<
F2
>
,
as
:
A
,
on
:
(
from
:
F
,
js
:
JoinTables
<
J
>
&
{
[
a
in
string
]
:
F2
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
,
)
:
FromItem
<
F
,
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
,
Joins
>
;
on
:
Bool
<
0
|
1
>
;
row
:
F2
;
type
:
"JOIN"
;
}
}
,
>
Type Parameters
F2
extends
object
A
extends
string
Parameters
j
:
WithFromItem
<
F2
>
as
:
A
on
:
(
from
:
F
,
js
:
JoinTables
<
J
>
&
{
[
a
in
string
]
:
F2
}
)
=>
boolean
|
Bool
<
0
|
1
>
Returns
FromItem
<
F
,
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
,
Joins
>
;
on
:
Bool
<
0
|
1
>
;
row
:
F2
;
type
:
"JOIN"
;
}
}
,
>
join
Tables
joinTables
()
:
JoinTables
<
J
>
Returns
JoinTables
<
J
>
join
With
Type
joinWithType
<
F2
extends
object
,
A
extends
string
>
(
j
:
WithFromItem
<
F2
>
,
as
:
A
,
type
:
JoinType
,
on
:
(
from
:
F
&
MakeRowNullable
<
F
>
,
js
:
any
)
=>
boolean
|
Bool
<
0
|
1
>
,
)
:
FromItem
<
any
,
any
>
Type Parameters
F2
extends
object
A
extends
string
Parameters
j
:
WithFromItem
<
F2
>
as
:
A
type
:
JoinType
on
:
(
from
:
F
&
MakeRowNullable
<
F
>
,
js
:
any
)
=>
boolean
|
Bool
<
0
|
1
>
Returns
FromItem
<
any
,
any
>
left
Join
leftJoin
<
F2
extends
object
,
A
extends
string
>
(
j
:
WithFromItem
<
F2
>
,
as
:
A
,
on
:
(
from
:
F
,
js
:
JoinTables
<
J
>
&
{
[
a
in
string
]
:
MakeRowNullable
<
F2
>
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
,
)
:
FromItem
<
F
,
J
&
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
>
;
on
:
Bool
<
0
|
1
>
;
row
:
MakeRowNullable
<
F2
>
;
type
:
"LEFT JOIN"
;
}
}
,
>
Type Parameters
F2
extends
object
A
extends
string
Parameters
j
:
WithFromItem
<
F2
>
as
:
A
on
:
(
from
:
F
,
js
:
JoinTables
<
J
>
&
{
[
a
in
string
]
:
MakeRowNullable
<
F2
>
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
Returns
FromItem
<
F
,
J
&
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
>
;
on
:
Bool
<
0
|
1
>
;
row
:
MakeRowNullable
<
F2
>
;
type
:
"LEFT JOIN"
;
}
}
,
>
right
Join
rightJoin
<
F2
extends
object
,
A
extends
string
>
(
j
:
WithFromItem
<
F2
>
,
as
:
A
,
on
:
(
from
:
F
,
js
:
JoinTables
<
MakeJoinsNullable
<
J
>
>
&
{
[
a
in
string
]
:
F2
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
,
)
:
FromItem
<
MakeRowNullable
<
F
>
,
MakeJoinsNullable
<
J
>
&
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
>
;
on
:
Bool
<
0
|
1
>
;
row
:
F2
;
type
:
"RIGHT JOIN"
;
}
}
,
>
Type Parameters
F2
extends
object
A
extends
string
Parameters
j
:
WithFromItem
<
F2
>
as
:
A
on
:
(
from
:
F
,
js
:
JoinTables
<
MakeJoinsNullable
<
J
>
>
&
{
[
a
in
string
]
:
F2
}
,
)
=>
boolean
|
Bool
<
0
|
1
>
Returns
FromItem
<
MakeRowNullable
<
F
>
,
MakeJoinsNullable
<
J
>
&
{
[
a
in
string
]
:
{
fromItem
:
WithFromItem
<
F2
>
;
on
:
Bool
<
0
|
1
>
;
row
:
F2
;
type
:
"RIGHT JOIN"
;
}
}
,
>
select
select
(
this
:
WithFromItem
<
F
,
J
>
)
:
Select
<
F
,
F
,
J
>
Parameters
this
:
WithFromItem
<
F
,
J
>
Returns
Select
<
F
,
F
,
J
>
select
<
S
extends
object
>
(
this
:
WithFromItem
<
F
,
J
>
,
cb
:
(
f
:
F
,
j
:
JoinTables
<
J
>
)
=>
S
,
)
:
Select
<
S
,
F
,
J
>
Type Parameters
S
extends
object
Parameters
this
:
WithFromItem
<
F
,
J
>
cb
:
(
f
:
F
,
j
:
JoinTables
<
J
>
)
=>
S
Returns
Select
<
S
,
F
,
J
>
select
<
S
extends
object
>
(
this
:
WithFromItem
<
F
,
J
>
,
cb
:
(
f
:
F
)
=>
S
,
)
:
Select
<
S
,
F
,
J
>
Type Parameters
S
extends
object
Parameters
this
:
WithFromItem
<
F
,
J
>
cb
:
(
f
:
F
)
=>
S
Returns
Select
<
S
,
F
,
J
>
table
Column
Alias
tableColumnAlias
()
:
RawBuilder
<
unknown
>
Returns
RawBuilder
<
unknown
>
to
Select
Args
toSelectArgs
()
:
FromToSelectArgs
<
F
,
J
>
Returns
FromToSelectArgs
<
F
,
J
>
Static
of
of
<
R
extends
object
>
(
fromRow
:
R
)
:
typeof
__class
Type Parameters
R
extends
object
Parameters
fromRow
:
R
Returns
typeof
__class
Static
of
Schema
ofSchema
<
T
extends
TableSchema
>
(
columns
:
T
)
:
typeof
__class
Type Parameters
T
extends
TableSchema
Parameters
columns
:
T
Returns
typeof
__class
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
from
from
Alias
join
Aliases
joins
raw
From
Expr
Methods
as
as
Class
as
From
Item
compile
compile
Just
From
full
Outer
Join
get
Context
join
join
Tables
join
With
Type
left
Join
right
Join
select
table
Column
Alias
to
Select
Args
of
of
Schema
Typegres API Reference - v0.0.1
Loading...