Search
Preparing search index...
The search index is not available
@typexs/base
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@typexs/base
index
MongoDbSchemaHandler
Class MongoDbSchemaHandler
Hierarchy
AbstractSchemaHandler
MongoDbSchemaHandler
Index
Constructors
constructor
Properties
storage
Ref
type
operations
type
Map
types
values
Methods
escape
get
Collection
get
Collection
Names
get
Collections
getDB
get
Operation
Handle
get
Type
Map
get
Value
Handle
init
Once
ByType
prepare
register
Operation
Handle
register
Value
Handle
supports
Json
supports
Sort
Null
translate
ToJs
Type
translate
ToStorage
Type
Constructors
constructor
new
Mongo
DbSchema
Handler
(
ref
?:
TypeOrmStorageRef
)
:
MongoDbSchemaHandler
Parameters
Optional
ref:
TypeOrmStorageRef
Returns
MongoDbSchemaHandler
Properties
Readonly
storage
Ref
storage
Ref
:
TypeOrmStorageRef
type
type
:
string
= 'mongodb'
Static
operations
operations
:
{}
= {}
Type declaration
[
type:
string
]:
{}
[
op:
string
]:
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
Static
type
Map
type
Map
:
{}
= {}
Type declaration
[
type:
string
]:
{}
[
type:
string
]:
string
Static
types
types
:
string
[]
= []
Static
values
values
:
{}
= {}
Type declaration
[
type:
string
]:
{}
[
op:
string
]:
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
Methods
escape
escape
(
name
:
string
, quote
?:
boolean
)
:
string
Parameters
name:
string
quote:
boolean
= true
Returns
string
get
Collection
get
Collection
(
name
:
string
)
:
Promise
<
any
>
Parameters
name:
string
Returns
Promise
<
any
>
get
Collection
Names
get
Collection
Names
(
)
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
get
Collections
get
Collections
(
names
:
string
[]
)
:
Promise
<
ICollection
[]
>
Parameters
names:
string
[]
Returns
Promise
<
ICollection
[]
>
Private
getDB
getDB
(
c
:
TypeOrmConnectionWrapper
)
:
Db
Parameters
c:
TypeOrmConnectionWrapper
Returns
Db
get
Operation
Handle
get
Operation
Handle
(
name
:
string
)
:
(
...
args
:
any
[]
)
=>
string
Parameters
name:
string
Returns
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
get
Type
Map
get
Type
Map
(
)
:
{}
|
{}
Returns
{}
|
{}
get
Value
Handle
get
Value
Handle
(
name
:
string
)
:
(
...
args
:
any
[]
)
=>
string
Parameters
name:
string
Returns
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
init
Once
ByType
init
Once
ByType
(
)
:
void
Returns
void
prepare
prepare
(
)
:
void
Returns
void
register
Operation
Handle
register
Operation
Handle
(
name
:
string
, op
:
(
...
args
:
any
[]
)
=>
string
)
:
void
Parameters
name:
string
op:
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
Returns
void
register
Value
Handle
register
Value
Handle
(
name
:
string
, op
:
(
...
args
:
any
[]
)
=>
string
)
:
void
Parameters
name:
string
op:
(
...
args
:
any
[]
)
=>
string
(
...
args
:
any
[]
)
:
string
Parameters
Rest
...
args:
any
[]
Returns
string
Returns
void
supports
Json
supports
Json
(
)
:
boolean
Returns
boolean
supports
Sort
Null
supports
Sort
Null
(
)
:
boolean
Return if null first or null last extra support during sort
Returns
boolean
translate
ToJs
Type
translate
ToJs
Type
(
dbType
:
string
)
:
JS_DATA_TYPES
Parameters
dbType:
string
Returns
JS_DATA_TYPES
translate
ToStorage
Type
translate
ToStorage
Type
(
jsType
:
string
, length
?:
number
)
:
IDBType
Parameters
jsType:
string
length:
number
= null
Returns
IDBType
Modules
Activator
Bootstrap
Startup
index
Mongo
DbSchema
Handler
constructor
storage
Ref
type
operations
type
Map
types
values
escape
get
Collection
get
Collection
Names
get
Collections
getDB
get
Operation
Handle
get
Type
Map
get
Value
Handle
init
Once
ByType
prepare
register
Operation
Handle
register
Value
Handle
supports
Json
supports
Sort
Null
translate
ToJs
Type
translate
ToStorage
Type
Generated using
TypeDoc
Return if null first or null last extra support during sort