Class MemoryStore<T, K>
Type parameters
-
T: CoreModel
-
K: StoreParameters
Hierarchy
-
Store<T, K>
- MemoryStore
Implements
Constructors
Properties
Methods
Constructors
-
Parameters
-
webda: Core
The main instance of Webda
-
name: string
The name of the service
-
Default value params: any = {}
The parameters block define in the configuration file
Returns MemoryStore
-
Properties
Service name
Webda Core object
Logger with class context
Hold the parameters for your service
It will be bring from the webda.config.json
Methods
-
Returns Promise<void>
-
Parameters
-
uid: any
Returns Promise<void>
-
-
Parameters
-
uid: any
-
prop: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
-
updateDate: Date
Returns Promise<T>
-
-
Parameters
-
request: any
-
offset: any
-
limit: any
Returns Promise<any>
-
-
Parameters
-
uid: any
Returns Promise<T>
-
-
Parameters
-
uid: any
Returns T
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
Returns any
-
-
Parameters
-
uid: string
-
updateDate: Date
-
Default value prop: string = undefined
Returns Promise<void>
-
-
Parameters
-
store: any
-
object: any
-
property: any
-
updates: any
Returns Promise<any>
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns Promise<any>
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
uid: any
-
prop: any
-
value: any
-
updateDate: Date
Returns Promise<T>
-
-
Parameters
-
object: any
-
uuid: any
Returns Promise<T>
-
-
Parameters
-
uuid: string
-
attribute: string
Returns Promise<void>
-
-
Parameters
-
object: any
Returns Promise<T>
-
-
Parameters
-
object: any
-
uuid: any
Returns Promise<T>
-
-
Parameters
-
uid: any
-
prop: any
-
item: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
-
updateDate: Date
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
prop: any
-
cascade: any
-
store: any
Returns void
-
-
Add a route dynamicaly
Parameters
-
url: string
of the route can contains dynamic part like {uuid}
-
methods: HttpMethodType[]
-
executer: Function
Method to execute for this route
-
Default value openapi: object = {}
-
Default value allowPath: boolean = false
Returns void
-
-
By default we cannot know if the store will trigger or not
Parameters
-
id: string
-
callback: function
-
-
Returns void
-
-
Returns boolean
-
-
Parameters
-
obj: any
-
uuid: string
Returns Promise<any>
-
-
Retrieve the Model
Returns void
-
Returns Promise<void>
-
Delete an object
Parameters
-
uid: any
-
Default value sync: boolean = false
Returns Promise<void>
the deletion promise
-
-
Parameters
-
uid: any
-
prop: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Emit the event with data and wait for Promise to finish if listener returned a Promise
Parameters
-
event: any
-
data: any
Returns Promise<any[]>
-
-
Returns Array<string | symbol>
-
Parameters
-
uid: any
Returns Promise<boolean>
-
-
Parameters
-
Default value request: any = undefined
-
Default value offset: number = 0
-
Default value limit: number = undefined
Returns Promise<any>
-
-
Returns any
-
Get an object
Parameters
-
uid: string
-
Default value ctx: Context = undefined
Returns Promise<T>
the object retrieved ( can be undefined if not found )
-
-
Parameters
-
uids: any
Returns Promise<any>
-
-
Provide a way to store configuration in store
Parameters
-
id: string
Returns Promise<Map<string, any>>
-
-
Parameters
-
map: any
-
uuid: any
Returns number
-
-
Returns number
-
Returns CoreModelDefinition
-
Get service name
Returns string
-
Get the service parameters
Returns K
-
Return a webda service
Type parameters
Parameters
-
service: string
name to retrieve
Returns T
-
-
Returns string
-
Returns string
-
Return WebdaCore
Returns Core
-
Parameters
-
object: CoreModel
-
updates: object | string
Returns Promise<void>
-
-
Parameters
-
object: any
-
map: any
-
updates: any
Returns Promise<any[]>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
uid: any
-
prop: any
-
value: any
Returns Promise<void | any[]>
-
-
Returns Promise<void>
-
Parameters
-
map: any
Returns void
-
-
Parameters
-
object: any
Returns T
-
-
Returns void
-
Parameters
-
property: string
Returns boolean
-
-
Parameters
-
type: string | symbol
Returns number
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Load the parameters for a service
Parameters
-
params: any
Returns StoreParameters
-
-
Parameters
-
level: WorkerLogLevel
to log
-
Rest ...args: any[]
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Listen to an event as on(...) would do except that it will be asynchronous
Parameters
-
event: any
-
callback: any
-
Default value queue: string = undefined
Name of queue to use, can be undefined, queue name are used to define differents priorities
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
object: any
-
Default value reverseMap: boolean = true
Returns Promise<any>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Parameters
-
config: any
new parameters for the service
Returns Promise<void>
-
-
Parameters
-
Optional event: string | symbol
Returns this
-
-
Parameters
-
uuid: string
-
attribute: string
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
map: any
-
uuid: any
Returns boolean
-
-
Resolve parameters Call initRoutes and initBeanRoutes
Returns void
-
Save an object
Parameters
-
object: any
-
Default value ctx: Context = undefined
Returns Promise<any>
with saved object
-
-
Parameters
-
n: number
Returns this
-
-
Convert an object to JSON using the Webda json filter
Parameters
-
object: any
The object to export
Returns string
The export of the strip object ( removed all attribute with _ )
-
-
Returns string
-
Update an object
Parameters
-
object: any
-
Default value reverseMap: boolean = true
internal use only, for disable map resolution
-
Default value partial: boolean = false
Returns Promise<any>
with saved object
-
-
Parameters
-
uid: any
-
prop: any
-
item: any
-
Default value index: any = undefined
-
Default value itemWriteCondition: any = undefined
-
Default value itemWriteConditionField: any = undefined
Returns Promise<void>
-
-
Returns ModdaDefinition
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
Store in Memory