Documentation ¶
Index ¶
- 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, ...)
- type HathiDB
- func (h *HathiDB) BeginTransaction() (tx *sql.Tx, err error)
- func (h *HathiDB) CheckPrivilege(tx *sql.Tx, objID string, actorID string, bitname string) (set bool, err error)
- func (h *HathiDB) Close() (err error)
- func (h *HathiDB) DeleteObjectData(tx *sql.Tx, objID string) (err error)
- func (h *HathiDB) EndTransaction(tx *sql.Tx, errIn *error) (err error)
- func (h *HathiDB) GenerateIDCode(tx *sql.Tx, idName string) (id string, err error)
- func (h *HathiDB) GetAllObjectIDs(tx *sql.Tx) (ids []string, err error)
- func (h *HathiDB) GetAllPrivilegeIDs(tx *sql.Tx) (ids []string, err error)
- func (h *HathiDB) GetObjActPrivileges(tx *sql.Tx, objID string, actorID string) (privs []string, err error)
- func (h *HathiDB) GetObjectPrivileges(tx *sql.Tx, objID string) (owners map[string][]string, err error)
- func (h *HathiDB) Initialize() (err error)
- func (h *HathiDB) ListAddI(tx *sql.Tx, objID string, fieldName string, index int, value interface{}) (err error)
- func (h *HathiDB) ListAppend(tx *sql.Tx, objID string, fieldName string, value interface{}) (err error)
- func (h *HathiDB) ListGetI(tx *sql.Tx, objID string, fieldName string, index int) (value interface{}, err error)
- func (h *HathiDB) ListGetRange(tx *sql.Tx, objID string, fieldName string, start int, length int) (values []interface{}, err error)
- func (h *HathiDB) ListMaxIndex(tx *sql.Tx, objID string, fieldName string) (index int, err error)
- func (h *HathiDB) ListRM(tx *sql.Tx, objID string, fieldName string, index int) (err error)
- func (h *HathiDB) ListSetI(tx *sql.Tx, objID string, fieldName string, index int, value interface{}) (err error)
- func (h *HathiDB) LoadFieldItems(tx *sql.Tx, objID string, field string) (value []interface{}, err error)
- func (h *HathiDB) LoadObject(tx *sql.Tx, objID string) (obj *activitypub.Object, err error)
- func (h *HathiDB) LoadObjectData(tx *sql.Tx, objID string) (objData map[string]interface{}, err error)
- func (h *HathiDB) SetObjActPrivileges(tx *sql.Tx, objID string, actorID string, privs []string) (err error)
- func (h *HathiDB) SetObjectPrivileges(tx *sql.Tx, objID string, actors map[string][]string) (err error)
- func (h *HathiDB) SetPrivilege(tx *sql.Tx, objID string, actorID string, bitname string, value bool) (err error)
- func (h *HathiDB) StoreField(tx *sql.Tx, objID string, name string, value interface{}) (err error)
- func (h *HathiDB) StoreFieldItem(tx *sql.Tx, objID string, name string, index int, item interface{}) (err error)
- func (h *HathiDB) StoreObject(tx *sql.Tx, obj *activitypub.Object) (err error)
- func (h *HathiDB) StoreObjectData(tx *sql.Tx, objID string, objData map[string]interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BOOL = 4
View Source
var EMBED = 5
View Source
var FLOAT = 3
View Source
var INTEGER = 2
View Source
var Logging bool
View Source
var NULL = 6
View Source
var STRING = 1
Type codes
Functions ¶
func ListToInterfaceList ¶
func ListToInterfaceList(value interface{}) (result []interface{}, err error)
func TypesToValue ¶
Types ¶
type HathiDB ¶
The Go DB is wrapped so that other code is as isolated as possible from the details of what database type is being dealt with. There may be other data to track in future so we save on transition costs if that happens. The cost is that we have to implement methods like Close()
func (*HathiDB) CheckPrivilege ¶
func (*HathiDB) DeleteObjectData ¶
func (*HathiDB) EndTransaction ¶
func (*HathiDB) GenerateIDCode ¶
func (*HathiDB) GetAllObjectIDs ¶
func (*HathiDB) GetAllPrivilegeIDs ¶
func (*HathiDB) GetObjActPrivileges ¶
func (*HathiDB) GetObjectPrivileges ¶
func (*HathiDB) Initialize ¶
func (*HathiDB) ListAppend ¶
func (*HathiDB) ListGetRange ¶
func (*HathiDB) ListMaxIndex ¶
func (*HathiDB) LoadFieldItems ¶
func (*HathiDB) LoadObject ¶
func (*HathiDB) LoadObjectData ¶
func (*HathiDB) SetObjActPrivileges ¶
func (*HathiDB) SetObjectPrivileges ¶
func (*HathiDB) SetPrivilege ¶
func (*HathiDB) StoreField ¶
func (*HathiDB) StoreFieldItem ¶
func (*HathiDB) StoreObject ¶
Click to show internal directories.
Click to hide internal directories.