- connect([dbpath], [options]) ⇒
Promise
connects lowkie to lokijs
- handler() ⇒
object
this is the proxy handler for lowkie, provides access to native loki methods as well.
- model(model, Schema) ⇒
lowkie model proxy for lokijs collection
Kind: global class
- lowkie
- new lowkie()
- instance
- static
lowkie ORM singleton class
creates lowkie schema, also includes helpers for document validations
Kind: instance method of lowkie
Returns: instance of lowkieSchema
Param | Type |
---|---|
scheme | object |
Kind: static class of lowkie
Creates an instance of lowkie.
Param | Type | Default |
---|---|---|
[options] | any |
{} |
Kind: global class
helper class for generating Ids
generates a unique ID
Kind: static method of ObjectId
Kind: global class
- lowkieSchema
- new lowkieSchema()
- instance
- static
proxy for creating new loki documents
returns validated document for lokijs
Kind: instance method of lowkieSchema
Returns: object
Param | Type |
---|---|
doc | any |
overwrites the default insert method
Kind: instance method of lowkieSchema
Returns: Promise
Param | Type |
---|---|
options | any |
schema data types
Kind: static property of lowkieSchema
connects lowkie to lokijs
Kind: global function
Param | Type | Default |
---|---|---|
[dbpath] | string |
"defaultDBPath" |
[options] | object |
{} |
this is the proxy handler for lowkie, provides access to native loki methods as well.
lowkie model proxy for lokijs collection
Kind: global function
Returns: Proxy
Param | Type | Description |
---|---|---|
model | string |
name of lowkie model |
Schema | class |
instance of lokieSchema |