Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Collection

Hierarchy

  • Collection

Index

Constructors

constructor

Properties

Private _database

_database: Database

Private _documents

_documents: object

Type declaration

Private _indexes

_indexes: object

Type declaration

name

name: string

schema

schema: object

Static Private _DEFAULT_INDEX

_DEFAULT_INDEX: string = "__default"

Static Private _RESERVED

_RESERVED: string[] = ['_DEFAULT_INDEX','_RESERVED','name','schema','_database','_documents','_indexes','get','insert','list','upsert','values']

Methods

count

empty

  • empty(): void

exportJSON

  • exportJSON(): string

find

findOne

  • findOne(id?: string): Query

get

importJSON

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

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

    Returns void

index

  • index(...keys: string[]): void

insert

list

  • list(): string[]

remove

  • remove(id: string): void
  • remove(doc: Document): void
  • remove(docs: Document[]): void

upsert

values

Generated using TypeDoc