S

Loading…

Class

SinterDatabase

A handle to a database on a server.

Get one from SinterClient.db.

class SinterDatabase

Defined in packages/driver/src/database.ts:12

Constructors#

Properties#

Methods#

M

collection

#
collection<TDocument extends object = Document>(
  name: string,
): SinterCollection<TDocument>

Returns a handle to a collection. No request is sent; the collection is created by the first write.

Type parameters

TDocument extends object = Document

The shape of the documents, used for type-checking.

Parameters

name: string

The collection name.

Defined in packages/driver/src/database.ts:33

Used by#