Documentation ¶
Index ¶
- Constants
- type Datastore
- func (ds *Datastore) Connect(config datalayer.DBConfig) (datalayer.DataStore, error)
- func (ds *Datastore) CreateCollection(ctx context.Context, name string, schema, metadata map[string]interface{}) error
- func (ds *Datastore) GetCollections(ctx context.Context) (collections []datalayer.CollectionVM, err error)
- func (ds *Datastore) GetItem(ctx context.Context, collectionName, itemID string) (item map[string]interface{}, err error)
- func (ds *Datastore) GetItems(ctx context.Context, collectionName string, queryData datalayer.QueryMeta) (items []map[string]interface{}, respInfo datalayer.ItemsResponseInfo, ...)
- func (ds *Datastore) GetSchema(ctx context.Context, collectionName string) (map[string]interface{}, error)
- func (ds *Datastore) SaveItem(ctx context.Context, collectionName, itemID string, ...) error
Constants ¶
View Source
const DriverName = "mongodb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.