AbstractConstructor for OINONoSql.
nosql storage connection parameters
ReadonlynameTable name
ReadonlysupportsWhether this backend can auto-generate primary key values when none are
supplied in a POST request. Defaults to false; override in subclasses
that support server-side key generation (e.g. UUID on insert).
Coerce a single data value into a form that can safely be passed to the datasource as a
bind parameter (as opposed to printCellAsValue, which formats it as an inline SQL literal).
The default implementation returns the value unchanged. SQL datasources override this to
apply driver-specific coercions (e.g. converting Date/boolean for drivers that only
accept primitive bind types). Non-SQL datasources (blob, nosql) can ignore it.
data value to bind
native type name for the table column
AbstractconnectConnect to database.
AbstractdeleteDelete an entity.
ordered primary key values as defined by the implementation's data model
AbstractdisconnectDisconnect from database.
AbstractgetFetch a single entity by its primary key values.
Returns null when no entity with the given primary key exists.
ordered primary key values as defined by the implementation's data model
AbstractinitializeInitialize a data model by getting the SQL schema and populating OINODataFields of the model.
api which data model to initialize.
AbstractlistList all entities in the table, applying storage-level filtering where possible and in-memory result filtering for remaining predicates.
Optionalfilter: OINOQueryFilteroptional query filter to apply
Parse a single SQL result value for serialization using the context of the native data type.
native type name for table column
Print a single data value from serialization using the context of the native data type with the correct SQL escaping.
data from sql results
native type name for table column
Print a column name with correct datasource specific formatting.
name of the column
Print a single string value as valid sql literal
Upsert (insert or replace) multiple entities in the most efficient way
the backend supports. The default implementation loops over
upsertEntry; override in subclasses that support native batch writes.
entities to upsert
AbstractupsertUpsert (insert or replace) an entity.
entity to upsert
AbstractvalidateValidate connection to database is working.
Abstract base class for NoSQL storage backends. Subclasses implement the core CRUD operations for a specific provider (e.g. Azure Table Storage).
The data model exposed by the API has a fixed set of fields:
partitionKey– partition key (primary key component, string)rowKey– row key (primary key component, string)timestamp– last modification timestamp (datetime)etag– entity tag (string)properties– all custom entity properties as a JSON stringThe SQL-formatting methods inherited from
OINODataSourceare not used by nosql operations; they are implemented here as passthrough stubs.