create proxed storage-service.
service to support CoreKeyMakeable
table-name or the parent storage-service
list of fields.
Optional
filters: CoreModelFilterable<T>filters of CoreModelFilterable
Optional
idName: string(optional) internal partition-key (default as '_id')
Private
$timertimer to generate the current-time (msec)
Readonly
filtersReadonly
idReadonly
serviceReadonly
storageStatic
Readonly
AUTO_Static
Readonly
TYPE_lock data-entry by type+id w/ limited time tick
doRelease()
total-waited-time = tick * interval (msec)
model-type
model-id
Optional
tick: numbertick count to wait.
Optional
interval: numbertimeout interval per each tick (in msec, default 1000 = 1sec)
save model by checking origin node.
doSave()
rather than doUpdate()
for both create & update.$create
is null, throw 404 error it if not found.model-type
node-id
node to save (or update)
Optional
$create: T(optional) initial creation model if not found.
create proxy-storage-service by type
model-type
get next auto-sequence number.
type of seqeunce.
Optional
nextInit: number(optional) initial next value if not exist.
(optional) the incremental step to get next. (default 1)
Static
createfactory function to create this proxy-storage-service
key-makeable
table-name
Optional
fields: string[]list of fields.
Optional
filters: CoreModelFilterable<T>model filter.
Optional
idName: string(optional) internal partition-key (default as '_id')
Static
makecreate storage-service w/ fields list.
_id
table-name or dummy file name (ex: dummy-data.yml
).
Optional
fields: string[]required for dynamo table.
Optional
idName: stringinternal partition-key name (default '_id')
Generated using TypeDoc
class:
ProxyStorageService
nextSeq()
,doLock()
,doRelease()
_id
string.Usage