Documentation
¶
Index ¶
- Variables
- type DriverArango
- func (instance *DriverArango) Close() error
- func (instance *DriverArango) Collection(name string, createIfDoesNotExists bool) (INoSqlCollection, error)
- func (instance *DriverArango) Count(query string, bindVars map[string]interface{}) (int64, error)
- func (instance *DriverArango) Delete(collectionName string, item interface{}) (map[string]interface{}, error)
- func (instance *DriverArango) Exec(query string, bindVars map[string]interface{}) (interface{}, error)
- func (instance *DriverArango) Insert(collectionName string, item map[string]interface{}) (map[string]interface{}, error)
- func (instance *DriverArango) Query(query string, bindVars map[string]interface{}) ([]interface{}, error)
- func (instance *DriverArango) Update(collectionName string, item map[string]interface{}) (map[string]interface{}, error)
- func (instance *DriverArango) Upsert(collectionName string, item map[string]interface{}) (map[string]interface{}, error)
- type DriverArangoCollection
- type INoSqlCollection
- type INoSqlDatabase
- type NoSqlDsn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ArangoConst = struct { KeyFieldName string IndexPersist string IndexGeo string IndexGeoJson string }{ KeyFieldName: "_key", IndexPersist: "persist", IndexGeo: "geo", IndexGeoJson: "geojson", } )
Functions ¶
This section is empty.
Types ¶
type DriverArango ¶
type DriverArango struct {
// contains filtered or unexported fields
}
func NewDriverArango ¶
func NewDriverArango(dsn *NoSqlDsn) (*DriverArango, error)
func (*DriverArango) Close ¶
func (instance *DriverArango) Close() error
func (*DriverArango) Collection ¶
func (instance *DriverArango) Collection(name string, createIfDoesNotExists bool) (INoSqlCollection, error)
func (*DriverArango) Count ¶
func (instance *DriverArango) Count(query string, bindVars map[string]interface{}) (int64, error)
func (*DriverArango) Delete ¶
func (instance *DriverArango) Delete(collectionName string, item interface{}) (map[string]interface{}, error)
func (*DriverArango) Exec ¶
func (instance *DriverArango) Exec(query string, bindVars map[string]interface{}) (interface{}, error)
func (*DriverArango) Insert ¶
func (instance *DriverArango) Insert(collectionName string, item map[string]interface{}) (map[string]interface{}, error)
func (*DriverArango) Query ¶
func (instance *DriverArango) Query(query string, bindVars map[string]interface{}) ([]interface{}, error)
type DriverArangoCollection ¶
type DriverArangoCollection struct {
// contains filtered or unexported fields
}
func (*DriverArangoCollection) EnsureIndex ¶
func (*DriverArangoCollection) Name ¶
func (instance *DriverArangoCollection) Name() string
func (*DriverArangoCollection) RemoveIndex ¶
func (instance *DriverArangoCollection) RemoveIndex(typeName string, fields []string) (bool, error)
type INoSqlCollection ¶
type INoSqlDatabase ¶
type INoSqlDatabase interface { Close() error Query(query string, bindVars map[string]interface{}) ([]interface{}, error) Exec(query string, bindVars map[string]interface{}) (interface{}, error) Count(query string, bindVars map[string]interface{}) (int64, error) Insert(collectionName string, item map[string]interface{}) (map[string]interface{}, error) Update(collectionName string, item map[string]interface{}) (map[string]interface{}, error) Upsert(collectionName string, item map[string]interface{}) (map[string]interface{}, error) Delete(collectionName string, item interface{}) (map[string]interface{}, error) Collection(name string, createIfNotExists bool) (INoSqlCollection, error) }
func NewDatabase ¶
func NewDatabase(driverName, connectionString string) (driver INoSqlDatabase, err error)
Click to show internal directories.
Click to hide internal directories.