add memdb docs

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-04 20:11:33 +02:00
parent 3f1c8851bc
commit d757d56df8
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 4 additions and 20 deletions

View File

@ -1,20 +0,0 @@
# This config file is very similar to common/config/rush/.npmrc, except that .npmrc-publish
# is used by the "rush publish" command, as publishing often involves different credentials
# and registries than other operations.
#
# Before invoking the package manager, Rush will copy this file to "common/temp/publish-home/.npmrc"
# and then temporarily map that folder as the "home directory" for the current user account.
# This enables the same settings to apply for each project folder that gets published. The copied file
# will omit any config lines that reference environment variables that are undefined in that session;
# this avoids problems that would otherwise result due to a missing variable being replaced by
# an empty string.
#
# * * * SECURITY WARNING * * *
#
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because
# other unrelated processes may be able to read the file. Also, the file may persist indefinitely,
# for example if the machine loses power. A safer practice is to pass the token via an
# environment variable, which can be referenced from .npmrc using ${} expansion. For example:
#
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
#

View File

@ -138,6 +138,8 @@ class MemDb extends TxProcessor {
/**
* Hold transactions
*
* @public
*/
export class TxDb extends MemDb implements Storage {
async tx (tx: Tx): Promise<void> {
@ -147,6 +149,8 @@ export class TxDb extends MemDb implements Storage {
/**
* Hold model objects and classes
*
* @public
*/
export class ModelDb extends MemDb implements Storage {
protected async txCreateDoc (tx: TxCreateDoc<Doc>): Promise<void> {