Documentation ¶
Index ¶
- type Database
- func (db *Database) All(table string) (interface{}, error)
- func (db *Database) Delete(table string, id string) (existed bool, err error)
- func (db *Database) DeleteTable(table string) error
- func (db *Database) Exists(table string, id string) (bool, error)
- func (db *Database) Get(table string, id string) (interface{}, error)
- func (db *Database) GetMany(table string, idList []string) (interface{}, error)
- func (db *Database) GetMap(table string, id string) (as.BinMap, error)
- func (db *Database) GetObject(table string, id string, obj interface{}) error
- func (db *Database) Namespace() string
- func (db *Database) Scan(table string, channel interface{}) error
- func (db *Database) ScanMap(table string) (chan as.BinMap, error)
- func (db *Database) Set(table string, id string, obj interface{}) error
- func (db *Database) SetScanPriority(priority string)
- func (db *Database) Type(table string) reflect.Type
- func (db *Database) Types() map[string]reflect.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database represents the Aerospike database.
func NewDatabase ¶
NewDatabase creates a new database client.
func (*Database) DeleteTable ¶
DeleteTable deletes all content from the given table.
func (*Database) GetMany ¶
GetMany performs a Get request for every ID in the ID list and returns a slice of objects.
func (*Database) GetObject ¶
GetObject retrieves data from the table and stores it in the provided object.
func (*Database) SetScanPriority ¶
SetScanPriority sets the scan priority.
Click to show internal directories.
Click to hide internal directories.