Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Database

Hierarchy

  • Database

Index

Constructors

constructor

  • new Database(name: string, options?: object): Database

Properties

Private _collections

_collections: object

Type declaration

Private _options

_options: object

name

name: string

Static Private _RESERVED

_RESERVED: string[] = ['_RESERVED','name','_collections','_options','collection','get','list']

Methods

collection

  • collection(name: string, schema?: object): Collection

exportJSON

  • exportJSON(): string

get

importJSON

  • importJSON(json: string, overwrite?: boolean): void
  • Parameters

    • json: string
    • Default value overwrite: boolean = false

    Returns void

list

  • list(): string[]

Generated using TypeDoc