Preparing search index...
The search index is not available
@datastax/astra-db-ts
@datastax/astra-db-ts
CollectionCodecs
Class CollectionCodecs
Index
Constructors
constructor
Properties
Defaults
Methods
as
Codec
Class
custom
for
Id
for
Name
for
Path
for
Type
Constructors
constructor
new
Collection
Codecs
(
)
:
CollectionCodecs
Returns
CollectionCodecs
Properties
Static
Defaults
Defaults
:
{
$date
:
RawCollCodecs
;
$objectId
:
RawCollCodecs
;
$uuid
:
RawCollCodecs
;
$vector
:
RawCollCodecs
;
}
= ...
Type declaration
$date
:
RawCollCodecs
$object
Id
:
RawCollCodecs
$uuid
:
RawCollCodecs
$vector
:
RawCollCodecs
Methods
Static
as
Codec
Class
as
Codec
Class
<
T
>
(
val
,
builder
?
)
:
CollectionCodecClass
Type Parameters
T
Parameters
val
:
T
Optional
builder
:
(
(
val
)
=>
void
)
(
val
)
:
void
Parameters
val
:
T
&
(
new
(
...
args
)
=>
{
[$SerializeForCollection]
:
(
(
ctx
)
=>
SerDesFnRet
|
"Return ctx.done(val?), ctx.recurse(val?), or ctx.continue(val?)"
)
;
}
)
&
{
[$DeserializeForCollection]
:
SerDesFn
<
CollectionDesCtx
>
;
}
&
{
prototype
:
{
[$SerializeForCollection]
:
(
(
ctx
)
=>
SerDesFnRet
|
"Return ctx.done(val?), ctx.recurse(val?), or ctx.continue(val?)"
)
;
}
;
}
Returns
void
Returns
CollectionCodecClass
Static
custom
custom
(
opts
)
:
RawCollCodecs
Parameters
opts
:
CollCustomCodecOpts
Returns
RawCollCodecs
Static
for
Id
for
Id
(
clazz
)
:
RawCollCodecs
Parameters
clazz
:
CollectionCodecClass
Returns
RawCollCodecs
Static
for
Name
for
Name
(
name
,
optsOrClass
)
:
RawCollCodecs
Parameters
name
:
string
optsOrClass
:
CollectionCodecClass
|
CollNominalCodecOpts
Returns
RawCollCodecs
Static
for
Path
for
Path
(
path
,
optsOrClass
)
:
RawCollCodecs
Parameters
path
:
(
string
|
number
)
[]
optsOrClass
:
CollectionCodecClass
|
CollNominalCodecOpts
Returns
RawCollCodecs
Static
for
Type
for
Type
(
type
,
optsOrClass
)
:
RawCollCodecs
Parameters
type
:
string
optsOrClass
:
CollectionCodecClass
|
CollTypeCodecOpts
Returns
RawCollCodecs
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
Defaults
as
Codec
Class
custom
for
Id
for
Name
for
Path
for
Type
@datastax/astra-db-ts
Loading...