Typegres API Reference - v0.2.0
Preparing search index...
Int4
Class Int4<N>
Type Parameters
in out
N
extends
number
Hierarchy (
View Summary
)
Anynonarray
<
N
>
Int4
Index
Constructors
constructor
Properties
[meta]
deserialize
__
typname
__
typname
Text
Methods
-
*
/
&
#
%
+
<
<<
<=
<>
=
>
>=
>>
|
abs
any
Value
any
Value
Transfn
array
Agg
array
Prepend
avg
bit
bit
And
bit
Or
bit
Xor
bool
cast
char
chr
coalesce
count
cume
Dist
dense
Rank
divide
elem
Contained
By
Multirange
elem
Contained
By
Range
eq
float4
float8
gcd
generate
Series
gt
gte
in
int2
int4
Abs
int4
And
int4
Inc
int4
Larger
int4
Not
int4
Or
int4
Range
Subdiff
int4
Send
int4
Shl
int4
Shr
int4
Smaller
int4
Xor
int8
is
Not
Null
is
Null
json
Agg
json
Agg
Strict
jsonb
Agg
jsonb
Agg
Strict
jsonb
Object
Agg
jsonb
Object
Agg
Strict
jsonb
Object
Agg
Unique
jsonb
Object
Agg
Unique
Strict
json
Object
Agg
json
Object
Agg
Strict
json
Object
Agg
Unique
json
Object
Agg
Unique
Strict
lcm
lt
lte
make
Date
make
Interval
make
Time
make
Timestamp
max
min
minus
mod
mode
ne
numeric
num
Nonnulls
num
Nulls
percent
Rank
pg
Encoding
Max
Length
plus
polygon
rank
stddev
stddev
Pop
stddev
Samp
sum
times
to
Bin
to
Hex
to
Oct
to
Sql
variance
var
Pop
var
Samp
column
from
serialize
Constructors
constructor
new
Int4
<
in out
N
extends
number
>
()
:
Int4
<
N
>
Type Parameters
in out
N
extends
number
Returns
Int4
<
N
>
Properties
[meta]
"[meta]"
:
{
__aggregate
:
Int4
<
number
>
;
__any
:
Int4
<
any
>
;
__class
:
typeof
Int4
;
__nonNullable
:
Int4
<
1
>
;
__nullability
:
N
;
__nullable
:
Int4
<
0
|
1
>
;
__raw
:
Sql
;
}
deserialize
deserialize
:
(
raw
:
string
)
=>
number
Static
__
typname
__typname
:
Raw
= ...
Static
__
typname
Text
__typnameText
:
string
= "int4"
Methods
-
"-"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"-"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"-"
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
*
"*"
<
M0
extends
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"*"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"*"
<
M0
extends
Money
<
any
>
>
(
arg0
:
M0
)
:
Money
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Money
<
any
>
Parameters
arg0
:
M0
Returns
Money
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"*"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
/
"/"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"/"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"/"
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
&
"&"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
#
"#"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
%
"%"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
+
"+"
<
M0
extends
Date
<
any
>
>
(
arg0
:
M0
)
:
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Date
<
any
>
Parameters
arg0
:
M0
Returns
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"+"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"+"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"+"
<
M0
extends
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<
"<"
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<<
"<<"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<=
"<="
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<="
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<="
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<>
"<>"
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<>"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"<>"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
=
"="
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"="
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"="
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
>
">"
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
">"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
">"
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
>=
">="
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
">="
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
">="
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
>>
">>"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
|
"|"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
abs
abs
()
:
Int4
<
N
>
Returns
Int4
<
N
>
any
Value
anyValue
()
:
Anyelement
<
0
|
1
>
Returns
Anyelement
<
0
|
1
>
any
Value
Transfn
anyValueTransfn
<
M0
extends
Anyelement
<
any
>
>
(
arg0
:
M0
,
)
:
Anyelement
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Anyelement
<
any
>
Parameters
arg0
:
M0
Returns
Anyelement
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
array
Agg
arrayAgg
()
:
Anyarray
<
Any
<
any
>
,
0
|
1
>
Returns
Anyarray
<
Any
<
any
>
,
0
|
1
>
array
Prepend
arrayPrepend
<
M0
extends
Anycompatiblearray
<
Any
<
any
>
,
any
>
>
(
arg0
:
M0
,
)
:
Anycompatiblearray
<
Any
<
any
>
,
1
>
Type Parameters
M0
extends
Anycompatiblearray
<
Any
<
any
>
,
any
>
Parameters
arg0
:
M0
Returns
Anycompatiblearray
<
Any
<
any
>
,
1
>
avg
avg
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
bit
bit
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bit
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bit
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
bit
And
bitAnd
()
:
Int4
<
0
|
1
>
Returns
Int4
<
0
|
1
>
bit
Or
bitOr
()
:
Int4
<
0
|
1
>
Returns
Int4
<
0
|
1
>
bit
Xor
bitXor
()
:
Int4
<
0
|
1
>
Returns
Int4
<
0
|
1
>
bool
bool
()
:
Bool
<
N
>
Returns
Bool
<
N
>
cast
cast
<
T
extends
typeof
Any
>
(
cls
:
T
,
)
:
[
number
]
extends
[
N
]
?
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__aggregate
:
U
}
}
?
U
:
InstanceType
<
T
>
:
[
N
]
extends
[
1
]
?
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
InstanceType
<
T
>
:
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nullable
:
U
}
}
?
U
:
InstanceType
<
T
>
Type Parameters
T
extends
typeof
Any
Parameters
cls
:
T
Returns
[
number
]
extends
[
N
]
?
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__aggregate
:
U
}
}
?
U
:
InstanceType
<
T
>
:
[
N
]
extends
[
1
]
?
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
InstanceType
<
T
>
:
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nullable
:
U
}
}
?
U
:
InstanceType
<
T
>
char
char
()
:
Char
<
N
>
Returns
Char
<
N
>
chr
chr
()
:
Text
<
N
>
Returns
Text
<
N
>
coalesce
coalesce
<
T
extends
Any
<
any
>
,
R
extends
Any
<
any
>
>
(
this
:
T
,
rhs
:
R
,
)
:
0
extends
NullOf
<
R
>
?
T
:
T
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
T
Type Parameters
T
extends
Any
<
any
>
R
extends
Any
<
any
>
Parameters
this
:
T
rhs
:
R
Returns
0
extends
NullOf
<
R
>
?
T
:
T
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
T
count
count
()
:
Int8
<
1
>
Returns
Int8
<
1
>
cume
Dist
cumeDist
()
:
Float8
<
0
|
1
>
Returns
Float8
<
0
|
1
>
dense
Rank
denseRank
()
:
Int8
<
0
|
1
>
Returns
Int8
<
0
|
1
>
divide
divide
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
divide
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
divide
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
,
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
elem
Contained
By
Multirange
elemContainedByMultirange
<
M0
extends
Anymultirange
<
Any
<
any
>
,
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Anymultirange
<
Any
<
any
>
,
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
elem
Contained
By
Range
elemContainedByRange
<
M0
extends
Anyrange
<
Any
<
any
>
,
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Anyrange
<
Any
<
any
>
,
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
eq
eq
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
eq
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
eq
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
float4
float4
()
:
Float4
<
N
>
Returns
Float4
<
N
>
float8
float8
()
:
Float8
<
N
>
Returns
Float8
<
N
>
gcd
gcd
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
generate
Series
generateSeries
<
M0
extends
number
|
Int4
<
any
>
,
M1
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
arg1
:
M1
,
)
:
PgSrf
<
{
generate_series
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
}
,
"generate_series"
,
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
M1
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
Returns
PgSrf
<
{
generate_series
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
}
,
"generate_series"
,
>
generateSeries
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
PgSrf
<
{
generate_series
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
}
,
"generate_series"
,
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
PgSrf
<
{
generate_series
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
}
,
"generate_series"
>
gt
gt
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gt
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gt
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gte
gte
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gte
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gte
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
in
in
<
T
extends
Any
<
any
>
,
Vs
extends
[
(
T
extends
{
"[meta]"
:
{
__any
:
A
}
}
?
A
:
Any
<
any
>
)
|
TsTypeOf
<
T
>
,
...
(
TsTypeOf
<
T
>
|
(
T
extends
{
"[meta]"
:
{
__any
:
A
}
}
?
A
:
Any
<
any
>
))
[]
,
]
,
>
(
this
:
T
,
...
vals
:
Vs
,
)
:
Bool
<
StrictNull
<
NullOf
<
T
>
|
NullOf
<
Vs
[
number
]
>
>
>
Type Parameters
T
extends
Any
<
any
>
Vs
extends
[
(
T
extends
{
"[meta]"
:
{
__any
:
A
}
}
?
A
:
Any
<
any
>
)
|
TsTypeOf
<
T
>
,
...
(
TsTypeOf
<
T
>
|
(
T
extends
{
"[meta]"
:
{
__any
:
A
}
}
?
A
:
Any
<
any
>
))
[]
,
]
Parameters
this
:
T
...
vals
:
Vs
Returns
Bool
<
StrictNull
<
NullOf
<
T
>
|
NullOf
<
Vs
[
number
]
>
>
>
int2
int2
()
:
Int2
<
N
>
Returns
Int2
<
N
>
int4
Abs
int4Abs
()
:
Int4
<
N
>
Returns
Int4
<
N
>
int4
And
int4And
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Inc
int4Inc
()
:
Int4
<
N
>
Returns
Int4
<
N
>
int4
Larger
int4Larger
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Not
int4Not
()
:
Int4
<
N
>
Returns
Int4
<
N
>
int4
Or
int4Or
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Range
Subdiff
int4RangeSubdiff
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Float8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Float8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Send
int4Send
()
:
Bytea
<
N
>
Returns
Bytea
<
N
>
int4
Shl
int4Shl
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Shr
int4Shr
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Smaller
int4Smaller
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int4
Xor
int4Xor
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
int8
int8
()
:
Int8
<
N
>
Returns
Int8
<
N
>
is
Not
Null
isNotNull
()
:
Bool
<
1
>
Returns
Bool
<
1
>
is
Null
isNull
()
:
Bool
<
1
>
Returns
Bool
<
1
>
json
Agg
jsonAgg
()
:
Json
<
0
|
1
>
Returns
Json
<
0
|
1
>
json
Agg
Strict
jsonAggStrict
()
:
Json
<
0
|
1
>
Returns
Json
<
0
|
1
>
jsonb
Agg
jsonbAgg
()
:
Jsonb
<
0
|
1
>
Returns
Jsonb
<
0
|
1
>
jsonb
Agg
Strict
jsonbAggStrict
()
:
Jsonb
<
0
|
1
>
Returns
Jsonb
<
0
|
1
>
jsonb
Object
Agg
jsonbObjectAgg
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
0
|
1
>
jsonb
Object
Agg
Strict
jsonbObjectAggStrict
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
0
|
1
>
jsonb
Object
Agg
Unique
jsonbObjectAggUnique
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
0
|
1
>
jsonb
Object
Agg
Unique
Strict
jsonbObjectAggUniqueStrict
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
0
|
1
>
json
Object
Agg
jsonObjectAgg
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Json
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Json
<
0
|
1
>
json
Object
Agg
Strict
jsonObjectAggStrict
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Json
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Json
<
0
|
1
>
json
Object
Agg
Unique
jsonObjectAggUnique
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Json
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Json
<
0
|
1
>
json
Object
Agg
Unique
Strict
jsonObjectAggUniqueStrict
<
M0
extends
string
|
Any
<
any
>
>
(
arg0
:
M0
)
:
Json
<
0
|
1
>
Type Parameters
M0
extends
string
|
Any
<
any
>
Parameters
arg0
:
M0
Returns
Json
<
0
|
1
>
lcm
lcm
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lt
lt
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lt
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lt
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lte
lte
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lte
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lte
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
make
Date
makeDate
<
M0
extends
number
|
Int4
<
any
>
,
M1
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
arg1
:
M1
,
)
:
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
M1
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
Returns
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
make
Interval
makeInterval
<
M0
extends
number
|
Int4
<
any
>
,
M1
extends
number
|
Int4
<
any
>
,
M2
extends
number
|
Int4
<
any
>
,
M3
extends
number
|
Int4
<
any
>
,
M4
extends
number
|
Int4
<
any
>
,
M5
extends
number
|
Float8
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
arg3
:
M3
,
arg4
:
M4
,
arg5
:
M5
,
)
:
Interval
<
StrictNull
<
|
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
|
NullOf
<
M3
>
|
NullOf
<
M4
>
|
NullOf
<
M5
>
,
>
,
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
M1
extends
number
|
Int4
<
any
>
M2
extends
number
|
Int4
<
any
>
M3
extends
number
|
Int4
<
any
>
M4
extends
number
|
Int4
<
any
>
M5
extends
number
|
Float8
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
arg3
:
M3
arg4
:
M4
arg5
:
M5
Returns
Interval
<
StrictNull
<
|
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
|
NullOf
<
M3
>
|
NullOf
<
M4
>
|
NullOf
<
M5
>
,
>
,
>
make
Time
makeTime
<
M0
extends
number
|
Int4
<
any
>
,
M1
extends
number
|
Float8
<
any
>
>
(
arg0
:
M0
,
arg1
:
M1
,
)
:
Time
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
M1
extends
number
|
Float8
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
Returns
Time
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
>
>
make
Timestamp
makeTimestamp
<
M0
extends
number
|
Int4
<
any
>
,
M1
extends
number
|
Int4
<
any
>
,
M2
extends
number
|
Int4
<
any
>
,
M3
extends
number
|
Int4
<
any
>
,
M4
extends
number
|
Float8
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
arg3
:
M3
,
arg4
:
M4
,
)
:
Timestamp
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
|
NullOf
<
M3
>
|
NullOf
<
M4
>
,
>
,
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
M1
extends
number
|
Int4
<
any
>
M2
extends
number
|
Int4
<
any
>
M3
extends
number
|
Int4
<
any
>
M4
extends
number
|
Float8
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
arg3
:
M3
arg4
:
M4
Returns
Timestamp
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
|
NullOf
<
M3
>
|
NullOf
<
M4
>
,
>
,
>
max
max
()
:
Int4
<
0
|
1
>
Returns
Int4
<
0
|
1
>
min
min
()
:
Int4
<
0
|
1
>
Returns
Int4
<
0
|
1
>
minus
minus
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
minus
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
minus
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
mod
mod
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
mode
mode
()
:
Anyelement
<
0
|
1
>
Returns
Anyelement
<
0
|
1
>
ne
ne
<
M0
extends
string
|
Int8
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
ne
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
ne
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
numeric
numeric
()
:
Numeric
<
N
>
Returns
Numeric
<
N
>
num
Nonnulls
numNonnulls
()
:
Int4
<
1
>
Returns
Int4
<
1
>
num
Nulls
numNulls
()
:
Int4
<
1
>
Returns
Int4
<
1
>
percent
Rank
percentRank
()
:
Float8
<
0
|
1
>
Returns
Float8
<
0
|
1
>
pg
Encoding
Max
Length
pgEncodingMaxLength
()
:
Int4
<
N
>
Returns
Int4
<
N
>
plus
plus
<
M0
extends
Date
<
any
>
>
(
arg0
:
M0
)
:
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Date
<
any
>
Parameters
arg0
:
M0
Returns
Date
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
plus
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
plus
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
plus
<
M0
extends
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
polygon
polygon
<
M0
extends
string
|
Circle
<
any
>
>
(
arg0
:
M0
,
)
:
Polygon
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Circle
<
any
>
Parameters
arg0
:
M0
Returns
Polygon
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
rank
rank
()
:
Int8
<
0
|
1
>
Returns
Int8
<
0
|
1
>
stddev
stddev
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
stddev
Pop
stddevPop
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
stddev
Samp
stddevSamp
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
sum
sum
()
:
Int8
<
0
|
1
>
Returns
Int8
<
0
|
1
>
times
times
<
M0
extends
Int8
<
any
>
>
(
arg0
:
M0
)
:
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int8
<
any
>
Parameters
arg0
:
M0
Returns
Int8
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
times
<
M0
extends
Int2
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Int2
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
times
<
M0
extends
Money
<
any
>
>
(
arg0
:
M0
)
:
Money
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
Money
<
any
>
Parameters
arg0
:
M0
Returns
Money
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
times
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Int4
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
to
Bin
toBin
()
:
Text
<
N
>
Returns
Text
<
N
>
to
Hex
toHex
()
:
Text
<
N
>
Returns
Text
<
N
>
to
Oct
toOct
()
:
Text
<
N
>
Returns
Text
<
N
>
to
Sql
toSql
()
:
Sql
Returns
Sql
variance
variance
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
var
Pop
varPop
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
var
Samp
varSamp
()
:
Numeric
<
0
|
1
>
Returns
Numeric
<
0
|
1
>
Static
column
column
<
T
extends
typeof
Any
,
Opts
extends
ColumnOpts
=
{}
>
(
this
:
T
,
_opts
?:
Opts
,
)
:
InstanceType
<
T
>
&
{
"[meta]"
:
{
__required
:
Opts
extends
{
nonNull
:
true
}
?
Opts
extends
{
default
:
any
}
|
{
generated
:
true
}
?
false
:
true
:
false
;
}
;
}
Type Parameters
T
extends
typeof
Any
Opts
extends
ColumnOpts
=
{}
Parameters
this
:
T
Optional
_opts
:
Opts
Returns
InstanceType
<
T
>
&
{
"[meta]"
:
{
__required
:
Opts
extends
{
nonNull
:
true
}
?
Opts
extends
{
default
:
any
}
|
{
generated
:
true
}
?
false
:
true
:
false
;
}
;
}
Static
from
from
<
T
extends
typeof
Any
>
(
this
:
T
,
v
:
Sql
,
)
:
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nullable
:
U
}
}
?
U
:
InstanceType
<
T
>
Type Parameters
T
extends
typeof
Any
Parameters
this
:
T
v
:
Sql
Returns
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nullable
:
U
}
}
?
U
:
InstanceType
<
T
>
from
<
T
extends
typeof
Any
>
(
this
:
T
,
v
:
unknown
,
)
:
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
InstanceType
<
T
>
Type Parameters
T
extends
typeof
Any
Parameters
this
:
T
v
:
unknown
Returns
InstanceType
<
T
>
extends
{
"[meta]"
:
{
__nonNullable
:
U
}
}
?
U
:
InstanceType
<
T
>
Static
serialize
serialize
(
v
:
unknown
)
:
Any
<
any
>
Parameters
v
:
unknown
Returns
Any
<
any
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
[meta]
deserialize
__
typname
__
typname
Text
Methods
-
*
/
&
#
%
+
<
<<
<=
<>
=
>
>=
>>
|
abs
any
Value
any
Value
Transfn
array
Agg
array
Prepend
avg
bit
bit
And
bit
Or
bit
Xor
bool
cast
char
chr
coalesce
count
cume
Dist
dense
Rank
divide
elem
Contained
By
Multirange
elem
Contained
By
Range
eq
float4
float8
gcd
generate
Series
gt
gte
in
int2
int4
Abs
int4
And
int4
Inc
int4
Larger
int4
Not
int4
Or
int4
Range
Subdiff
int4
Send
int4
Shl
int4
Shr
int4
Smaller
int4
Xor
int8
is
Not
Null
is
Null
json
Agg
json
Agg
Strict
jsonb
Agg
jsonb
Agg
Strict
jsonb
Object
Agg
jsonb
Object
Agg
Strict
jsonb
Object
Agg
Unique
jsonb
Object
Agg
Unique
Strict
json
Object
Agg
json
Object
Agg
Strict
json
Object
Agg
Unique
json
Object
Agg
Unique
Strict
lcm
lt
lte
make
Date
make
Interval
make
Time
make
Timestamp
max
min
minus
mod
mode
ne
numeric
num
Nonnulls
num
Nulls
percent
Rank
pg
Encoding
Max
Length
plus
polygon
rank
stddev
stddev
Pop
stddev
Samp
sum
times
to
Bin
to
Hex
to
Oct
to
Sql
variance
var
Pop
var
Samp
column
from
serialize
Typegres API Reference - v0.2.0
Loading...