Abstract
Abstract
createCreates a SODA collection of the given name. If a collection with the same name already exists, then that existing collection is opened without error.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadbcreatecollection
a new SodaCollection object.
name of the collection to be created.
Optional
options: ICreateCollectionOptionsthe options that specify the collection, see CreateCollectionOptions.
Abstract
createConstructs a proto SodaDocument object usable for SODA insert and replace methods. SodaDocument attributes like createdOn will not be defined, and neither will attributes valid in options but not specified. The document will not be stored in the database until an insert or replace method is called.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadbcreatedocument
a new SodaDocument object.
the document content.
Optional
options: ICreateDocumentOptionsthe options that specify the document, see CreateDocumentOptions.
Abstract
getGets an array of collection names in alphabetical order. Returns names that start with the given string, and all subsequent names, in alphabetic order.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadbgetcollectionnames
an array of matching collection names.
Optional
options: IGetCollectionNameOptionssee GetCollectionNameOptions.
Abstract
openOpens an existing SodaCollection of the given name. The collection can then be used to access documents.
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadbopencollection
a new SodaCollection object if the collection exists. If the requested collection does not exist undefined will be returned.
the name of the collection to open.
SODA database access class. SodaDatabase is the top level object for SODA operations. A 'SODA database' is an abstraction, allowing access to SODA collections in that 'SODA database', which then allow access to documents in those collections.
See
https://github.com/oracle/node-oracledb/blob/v5.0.0/doc/api.md#sodadatabaseclass