mStorage

Mixin. Provide CRUID operations for entity database persistent (ORM) using ubql query syntax

Methods

# addNew (ctxubMethodParams) static

Create record with filled default values and return it to caller. Newly created record is not inserted to database. For inserting record to the database insert method should be called

Arguments:

# delete (ctxubMethodParams) static

Delete record by ID

Arguments:

# insert (ctxubMethodParams) static

New record insertion

Arguments:

# select (ctxubMethodParams) static

ORM query for read records

Arguments:

# update (ctxubMethodParams) static

Update existed record

Arguments:
  • ctx: ubMethodParams
    • mParamsobject

      Update method parameters

    • fieldListarray.<string>

      Optional attributes names. Values of this attributes will be returned in result. Additional DB query is required to return values, so if caller do not need it better to not pass a fieldList to update