Typegres API Reference - v0.2.0
Preparing search index...
Jsonb
Class Jsonb<N>
Type Parameters
in out
N
extends
number
Hierarchy (
View Summary
)
Anynonarray
<
N
>
Jsonb
Index
Constructors
constructor
Properties
[meta]
deserialize
__
typname
__
typname
Text
Methods
-
-
>
-
>>
?
@?
@@
@>
<
<@
<=
<>
=
>
>=
||
any
Value
any
Value
Transfn
array
Agg
array
Prepend
bool
cast
coalesce
count
cume
Dist
dense
Rank
elem
Contained
By
Multirange
elem
Contained
By
Range
eq
float4
float8
gt
gte
in
int2
int4
int8
is
Not
Null
is
Null
json
Agg
json
Agg
Strict
jsonb
Agg
jsonb
Agg
Strict
jsonb
Array
Element
jsonb
Array
Elements
jsonb
Array
Elements
Text
jsonb
Array
Element
Text
jsonb
Array
Length
jsonb
Concat
jsonb
Contained
jsonb
Contains
jsonb
Each
jsonb
Each
Text
jsonb
Exists
jsonb
Object
Agg
jsonb
Object
Agg
Strict
jsonb
Object
Agg
Unique
jsonb
Object
Agg
Unique
Strict
jsonb
Object
Field
jsonb
Object
Field
Text
jsonb
Object
Keys
jsonb
Path
Exists
jsonb
Path
Exists
Opr
jsonb
Path
Match
jsonb
Path
Match
Opr
jsonb
Path
Query
jsonb
Path
Query
Array
jsonb
Path
Query
First
jsonb
Pretty
jsonb
Send
jsonb
Strip
Nulls
jsonb
Typeof
json
Object
Agg
json
Object
Agg
Strict
json
Object
Agg
Unique
json
Object
Agg
Unique
Strict
lt
lte
minus
mode
ne
numeric
num
Nonnulls
num
Nulls
percent
Rank
rank
to
Sql
column
from
serialize
Constructors
constructor
new
Jsonb
<
in out
N
extends
number
>
()
:
Jsonb
<
N
>
Type Parameters
in out
N
extends
number
Returns
Jsonb
<
N
>
Properties
[meta]
"[meta]"
:
{
__aggregate
:
Jsonb
<
number
>
;
__any
:
Jsonb
<
any
>
;
__class
:
typeof
Jsonb
;
__nonNullable
:
Jsonb
<
1
>
;
__nullability
:
N
;
__nullable
:
Jsonb
<
0
|
1
>
;
__raw
:
Sql
;
}
deserialize
deserialize
:
(
raw
:
string
)
=>
string
Static
__
typname
__typname
:
Raw
= ...
Static
__
typname
Text
__typnameText
:
string
= "jsonb"
Methods
-
"-"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
"-"
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
-
>
"->"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
"->"
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
)
:
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
-
>>
"->>"
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
)
:
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
"->>"
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
)
:
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
?
"?"
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
@?
"@?"
<
M0
extends
string
|
Jsonpath
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
@@
"@@"
<
M0
extends
string
|
Jsonpath
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
@>
"@>"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<
"<"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<@
"<@"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<=
"<="
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
<>
"<>"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
=
"="
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
>
">"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
>=
">="
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
||
"||"
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
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
>
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
>
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
>
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
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
float4
float4
()
:
Float4
<
N
>
Returns
Float4
<
N
>
float8
float8
()
:
Float8
<
N
>
Returns
Float8
<
N
>
gt
gt
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
gte
gte
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
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
int4
()
:
Int4
<
N
>
Returns
Int4
<
N
>
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
Array
Element
jsonbArrayElement
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Array
Elements
jsonbArrayElements
()
:
PgSrf
<
{
value
:
Jsonb
<
1
>
}
,
"jsonb_array_elements"
>
Returns
PgSrf
<
{
value
:
Jsonb
<
1
>
}
,
"jsonb_array_elements"
>
jsonb
Array
Elements
Text
jsonbArrayElementsText
()
:
PgSrf
<
{
value
:
Text
<
1
>
}
,
"jsonb_array_elements_text"
>
Returns
PgSrf
<
{
value
:
Text
<
1
>
}
,
"jsonb_array_elements_text"
>
jsonb
Array
Element
Text
jsonbArrayElementText
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Text
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Text
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Array
Length
jsonbArrayLength
()
:
Int4
<
N
>
Returns
Int4
<
N
>
jsonb
Concat
jsonbConcat
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Contained
jsonbContained
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Contains
jsonbContains
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Each
jsonbEach
()
:
PgSrf
<
{
key
:
Text
<
1
>
;
value
:
Jsonb
<
1
>
}
,
"jsonb_each"
>
Returns
PgSrf
<
{
key
:
Text
<
1
>
;
value
:
Jsonb
<
1
>
}
,
"jsonb_each"
>
jsonb
Each
Text
jsonbEachText
()
:
PgSrf
<
{
key
:
Text
<
1
>
;
value
:
Text
<
1
>
}
,
"jsonb_each_text"
>
Returns
PgSrf
<
{
key
:
Text
<
1
>
;
value
:
Text
<
1
>
}
,
"jsonb_each_text"
>
jsonb
Exists
jsonbExists
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
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
>
jsonb
Object
Field
jsonbObjectField
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Object
Field
Text
jsonbObjectFieldText
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
,
)
:
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Text
<
MaybeNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Object
Keys
jsonbObjectKeys
()
:
PgSrf
<
{
jsonb_object_keys
:
Text
<
N
>
}
,
"jsonb_object_keys"
>
Returns
PgSrf
<
{
jsonb_object_keys
:
Text
<
N
>
}
,
"jsonb_object_keys"
>
jsonb
Path
Exists
jsonbPathExists
<
M0
extends
string
|
Jsonpath
<
any
>
,
M1
extends
string
|
Jsonb
<
any
>
,
M2
extends
boolean
|
Bool
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
M1
extends
string
|
Jsonb
<
any
>
M2
extends
boolean
|
Bool
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
jsonb
Path
Exists
Opr
jsonbPathExistsOpr
<
M0
extends
string
|
Jsonpath
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Path
Match
jsonbPathMatch
<
M0
extends
string
|
Jsonpath
<
any
>
,
M1
extends
string
|
Jsonb
<
any
>
,
M2
extends
boolean
|
Bool
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
M1
extends
string
|
Jsonb
<
any
>
M2
extends
boolean
|
Bool
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
jsonb
Path
Match
Opr
jsonbPathMatchOpr
<
M0
extends
string
|
Jsonpath
<
any
>
>
(
arg0
:
M0
,
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
jsonb
Path
Query
jsonbPathQuery
<
M0
extends
string
|
Jsonpath
<
any
>
,
M1
extends
string
|
Jsonb
<
any
>
,
M2
extends
boolean
|
Bool
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
)
:
PgSrf
<
{
jsonb_path_query
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
,
>
;
}
,
"jsonb_path_query"
,
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
M1
extends
string
|
Jsonb
<
any
>
M2
extends
boolean
|
Bool
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
Returns
PgSrf
<
{
jsonb_path_query
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
,
>
;
}
,
"jsonb_path_query"
,
>
jsonb
Path
Query
Array
jsonbPathQueryArray
<
M0
extends
string
|
Jsonpath
<
any
>
,
M1
extends
string
|
Jsonb
<
any
>
,
M2
extends
boolean
|
Bool
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
M1
extends
string
|
Jsonb
<
any
>
M2
extends
boolean
|
Bool
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
jsonb
Path
Query
First
jsonbPathQueryFirst
<
M0
extends
string
|
Jsonpath
<
any
>
,
M1
extends
string
|
Jsonb
<
any
>
,
M2
extends
boolean
|
Bool
<
any
>
,
>
(
arg0
:
M0
,
arg1
:
M1
,
arg2
:
M2
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
Type Parameters
M0
extends
string
|
Jsonpath
<
any
>
M1
extends
string
|
Jsonb
<
any
>
M2
extends
boolean
|
Bool
<
any
>
Parameters
arg0
:
M0
arg1
:
M1
arg2
:
M2
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
|
NullOf
<
M1
>
|
NullOf
<
M2
>
>
>
jsonb
Pretty
jsonbPretty
()
:
Text
<
N
>
Returns
Text
<
N
>
jsonb
Send
jsonbSend
()
:
Bytea
<
N
>
Returns
Bytea
<
N
>
jsonb
Strip
Nulls
jsonbStripNulls
()
:
Jsonb
<
N
>
Returns
Jsonb
<
N
>
jsonb
Typeof
jsonbTypeof
()
:
Text
<
N
>
Returns
Text
<
N
>
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
>
lt
lt
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
lte
lte
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
any
>
Parameters
arg0
:
M0
Returns
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
minus
minus
<
M0
extends
number
|
Int4
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
number
|
Int4
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
minus
<
M0
extends
string
|
Text
<
any
>
>
(
arg0
:
M0
,
)
:
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Text
<
any
>
Parameters
arg0
:
M0
Returns
Jsonb
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
mode
mode
()
:
Anyelement
<
0
|
1
>
Returns
Anyelement
<
0
|
1
>
ne
ne
<
M0
extends
string
|
Jsonb
<
any
>
>
(
arg0
:
M0
)
:
Bool
<
StrictNull
<
N
|
NullOf
<
M0
>
>
>
Type Parameters
M0
extends
string
|
Jsonb
<
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
>
rank
rank
()
:
Int8
<
0
|
1
>
Returns
Int8
<
0
|
1
>
to
Sql
toSql
()
:
Sql
Returns
Sql
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
-
-
>
-
>>
?
@?
@@
@>
<
<@
<=
<>
=
>
>=
||
any
Value
any
Value
Transfn
array
Agg
array
Prepend
bool
cast
coalesce
count
cume
Dist
dense
Rank
elem
Contained
By
Multirange
elem
Contained
By
Range
eq
float4
float8
gt
gte
in
int2
int4
int8
is
Not
Null
is
Null
json
Agg
json
Agg
Strict
jsonb
Agg
jsonb
Agg
Strict
jsonb
Array
Element
jsonb
Array
Elements
jsonb
Array
Elements
Text
jsonb
Array
Element
Text
jsonb
Array
Length
jsonb
Concat
jsonb
Contained
jsonb
Contains
jsonb
Each
jsonb
Each
Text
jsonb
Exists
jsonb
Object
Agg
jsonb
Object
Agg
Strict
jsonb
Object
Agg
Unique
jsonb
Object
Agg
Unique
Strict
jsonb
Object
Field
jsonb
Object
Field
Text
jsonb
Object
Keys
jsonb
Path
Exists
jsonb
Path
Exists
Opr
jsonb
Path
Match
jsonb
Path
Match
Opr
jsonb
Path
Query
jsonb
Path
Query
Array
jsonb
Path
Query
First
jsonb
Pretty
jsonb
Send
jsonb
Strip
Nulls
jsonb
Typeof
json
Object
Agg
json
Object
Agg
Strict
json
Object
Agg
Unique
json
Object
Agg
Unique
Strict
lt
lte
minus
mode
ne
numeric
num
Nonnulls
num
Nulls
percent
Rank
rank
to
Sql
column
from
serialize
Typegres API Reference - v0.2.0
Loading...