Documentation ¶
Index ¶
- Constants
- Variables
- func ListToInterfaceList(value interface{}) (result []interface{}, err error)
- func TypesToValue(typeCode int, vStr string, vInt int64, vFloat float64, vBool bool) (value interface{}, err error)
- func ValueToTypes(value interface{}) (typeCode int, vStr string, vInt int64, vFloat float64, vBool bool, err error)
- type DBTx
- func (t *DBTx) AddField(objectID object.LocalID, fieldName string, data interface{}) (err error)
- func (t *DBTx) BasicObjectData(objectID object.LocalID) (objType string, owner object.LocalID, err error)
- func (t *DBTx) DeleteAccount(user string) (err error)
- func (t *DBTx) EndTransaction(errIn *error) (err error)
- func (t *DBTx) Exists(objectID object.LocalID) (exists bool, err error)
- func (t *DBTx) GetPropIDs() (propQueue []object.LocalID, err error)
- func (t *DBTx) GetPropObject(objectID object.LocalID) (obj map[string]interface{}, err error)
- func (t *DBTx) GetPropTargets(objectID object.LocalID) (queue []goap.PropRetryTarget, err error)
- func (t *DBTx) IsProtected(objectID object.LocalID) (protected bool, err error)
- func (t *DBTx) ListAppend(objectID object.LocalID, fieldName string, data interface{}) (err error)
- func (t *DBTx) ListRemove(objectID object.LocalID, fieldName string, value interface{}) (err error)
- func (t *DBTx) LoadAccount(user string) (acct goap.Account, err error)
- func (t *DBTx) LoadCache(objectID string) (obj map[string]interface{}, err error)
- func (t *DBTx) LoadChangeset(changeID string) (set []goap.Change, err error)
- func (t *DBTx) LoadObject(objectID object.LocalID) (obj map[string]interface{}, err error)
- func (t *DBTx) LoadObjectField(objectID object.LocalID, fieldName string) (value interface{}, err error)
- func (t *DBTx) ObjcolAdd(objectID object.LocalID, fieldName string, value interface{}) (err error)
- func (t *DBTx) ObjcolGetAll(objectID object.LocalID) (data map[string][]interface{}, err error)
- func (t *DBTx) ObjcolGetAllField(objectID object.LocalID, fieldName string) (values []interface{}, err error)
- func (t *DBTx) ObjcolGetFields(objectID object.LocalID) (fields []string, err error)
- func (t *DBTx) ObjcolRM(objectID object.LocalID, fieldName string, value interface{}) (err error)
- func (t *DBTx) ObjcolRMAll(objectID object.LocalID) (err error)
- func (t *DBTx) ObjcolSet(objectID object.LocalID, data map[string][]interface{}) (err error)
- func (t *DBTx) RemoveField(objectID object.LocalID, fieldName string) (err error)
- func (t *DBTx) RemoveObject(objectID object.LocalID) (err error)
- func (t *DBTx) RemovePropTarget(objectID object.LocalID, targetURL string) (err error)
- func (t *DBTx) RevertTransaction() (err error)
- func (t *DBTx) SetProtected(objectID object.LocalID, protected bool) (err error)
- func (t *DBTx) StoreAccount(acct goap.Account) (err error)
- func (t *DBTx) StoreCache(obj map[string]interface{}) (err error)
- func (t *DBTx) StoreChangeset(changeID string, changeset []goap.Change) (err error)
- func (t *DBTx) StoreObject(obj map[string]interface{}) (err error)
- func (t *DBTx) StoreProp(obj map[string]interface{}, targets []goap.PropRetryTarget) (err error)
- func (t *DBTx) UpdateAccount(user string, acct goap.Account) (err error)
- func (t *DBTx) UpdateField(objectID object.LocalID, fieldName string, data interface{}) (err error)
- func (t *DBTx) UpdatePropTarget(objectID object.LocalID, target goap.PropRetryTarget) (err error)
- func (t *DBTx) ValueInObject(objectID object.LocalID, fieldName string, data interface{}) (found bool, err error)
- type Database
Constants ¶
View Source
const ( OFF = iota ERROR WARN INFO DEBUG DEEPDEBUG )
Variables ¶
View Source
var BOOL = 5
View Source
var EMBED = 6
View Source
var FLOAT = 4
View Source
var INTEGER = 3
View Source
var LIST = 7
View Source
var LOCALID = 2
View Source
var NULL = 8
View Source
var STRING = 1
Type codes
Functions ¶
func ListToInterfaceList ¶
func ListToInterfaceList(value interface{}) (result []interface{}, err error)
func TypesToValue ¶
Types ¶
type DBTx ¶
type DBTx struct { DebugLevel int // contains filtered or unexported fields }
func (*DBTx) BasicObjectData ¶
func (*DBTx) DeleteAccount ¶
func (*DBTx) EndTransaction ¶
func (*DBTx) GetPropObject ¶
func (*DBTx) GetPropTargets ¶
func (*DBTx) IsProtected ¶
func (*DBTx) ListAppend ¶
func (*DBTx) ListRemove ¶
func (*DBTx) LoadChangeset ¶
func (*DBTx) LoadObject ¶
func (*DBTx) LoadObjectField ¶
func (*DBTx) ObjcolGetAll ¶
func (*DBTx) ObjcolGetAllField ¶
func (*DBTx) ObjcolGetFields ¶
func (*DBTx) RemoveField ¶
func (*DBTx) RemovePropTarget ¶
func (*DBTx) RevertTransaction ¶
func (*DBTx) SetProtected ¶
func (*DBTx) StoreCache ¶
func (*DBTx) StoreChangeset ¶
func (*DBTx) StoreObject ¶
func (*DBTx) StoreProp ¶
func (t *DBTx) StoreProp(obj map[string]interface{}, targets []goap.PropRetryTarget) (err error)
func (*DBTx) UpdateAccount ¶
func (*DBTx) UpdateField ¶
func (*DBTx) UpdatePropTarget ¶
type Database ¶
type Database struct { DebugLevel int // contains filtered or unexported fields }
func OpenDatabase ¶
func (*Database) Initialize ¶
func (*Database) StartTransaction ¶
func (d *Database) StartTransaction() (tx goap.Transaction, err error)
Click to show internal directories.
Click to hide internal directories.