Versions in this module Expand all Collapse all v1 v1.1.0 Oct 23, 2018 v1.0.0 Aug 26, 2018 Changes in this version + var XOLog = func(string, ...interface{}) + type AuthGroup struct + ID int + Name string + func AuthGroupByID(db XODB, id int) (*AuthGroup, error) + func AuthGroupByName(db XODB, name string) (*AuthGroup, error) + func AuthGroupsByName(db XODB, name string) ([]*AuthGroup, error) + func (ag *AuthGroup) Delete(db XODB) error + func (ag *AuthGroup) Deleted() bool + func (ag *AuthGroup) Exists() bool + func (ag *AuthGroup) Insert(db XODB) error + func (ag *AuthGroup) Save(db XODB) error + func (ag *AuthGroup) Update(db XODB) error + func (ag *AuthGroup) Upsert(db XODB) error + type AuthGroupPermission struct + GroupID int + ID int + PermissionID int + func AuthGroupPermissionByGroupIDPermissionID(db XODB, groupID int, permissionID int) (*AuthGroupPermission, error) + func AuthGroupPermissionByID(db XODB, id int) (*AuthGroupPermission, error) + func AuthGroupPermissionsByGroupID(db XODB, groupID int) ([]*AuthGroupPermission, error) + func AuthGroupPermissionsByPermissionID(db XODB, permissionID int) ([]*AuthGroupPermission, error) + func (agp *AuthGroupPermission) AuthGroup(db XODB) (*AuthGroup, error) + func (agp *AuthGroupPermission) AuthPermission(db XODB) (*AuthPermission, error) + func (agp *AuthGroupPermission) Delete(db XODB) error + func (agp *AuthGroupPermission) Deleted() bool + func (agp *AuthGroupPermission) Exists() bool + func (agp *AuthGroupPermission) Insert(db XODB) error + func (agp *AuthGroupPermission) Save(db XODB) error + func (agp *AuthGroupPermission) Update(db XODB) error + func (agp *AuthGroupPermission) Upsert(db XODB) error + type AuthPermission struct + Codename string + ContentTypeID int + ID int + Name string + func AuthPermissionByContentTypeIDCodename(db XODB, contentTypeID int, codename string) (*AuthPermission, error) + func AuthPermissionByID(db XODB, id int) (*AuthPermission, error) + func AuthPermissionsByContentTypeID(db XODB, contentTypeID int) ([]*AuthPermission, error) + func (ap *AuthPermission) Delete(db XODB) error + func (ap *AuthPermission) Deleted() bool + func (ap *AuthPermission) DjangoContentType(db XODB) (*DjangoContentType, error) + func (ap *AuthPermission) Exists() bool + func (ap *AuthPermission) Insert(db XODB) error + func (ap *AuthPermission) Save(db XODB) error + func (ap *AuthPermission) Update(db XODB) error + func (ap *AuthPermission) Upsert(db XODB) error + type AuthUser struct + DateJoined *time.Time + Email string + FirstName string + ID int + IsActive bool + IsStaff bool + IsSuperuser bool + LastLogin pq.NullTime + LastName string + Password string + Username string + func AuthUserByID(db XODB, id int) (*AuthUser, error) + func AuthUserByUsername(db XODB, username string) (*AuthUser, error) + func AuthUsersByUsername(db XODB, username string) ([]*AuthUser, error) + func (au *AuthUser) Delete(db XODB) error + func (au *AuthUser) Deleted() bool + func (au *AuthUser) Exists() bool + func (au *AuthUser) Insert(db XODB) error + func (au *AuthUser) Save(db XODB) error + func (au *AuthUser) Update(db XODB) error + func (au *AuthUser) Upsert(db XODB) error + type AuthUserGroup struct + GroupID int + ID int + UserID int + func AuthUserGroupByID(db XODB, id int) (*AuthUserGroup, error) + func AuthUserGroupByUserIDGroupID(db XODB, userID int, groupID int) (*AuthUserGroup, error) + func AuthUserGroupsByGroupID(db XODB, groupID int) ([]*AuthUserGroup, error) + func AuthUserGroupsByUserID(db XODB, userID int) ([]*AuthUserGroup, error) + func (aug *AuthUserGroup) AuthGroup(db XODB) (*AuthGroup, error) + func (aug *AuthUserGroup) AuthUser(db XODB) (*AuthUser, error) + func (aug *AuthUserGroup) Delete(db XODB) error + func (aug *AuthUserGroup) Deleted() bool + func (aug *AuthUserGroup) Exists() bool + func (aug *AuthUserGroup) Insert(db XODB) error + func (aug *AuthUserGroup) Save(db XODB) error + func (aug *AuthUserGroup) Update(db XODB) error + func (aug *AuthUserGroup) Upsert(db XODB) error + type AuthUserUserPermission struct + ID int + PermissionID int + UserID int + func AuthUserUserPermissionByID(db XODB, id int) (*AuthUserUserPermission, error) + func AuthUserUserPermissionByUserIDPermissionID(db XODB, userID int, permissionID int) (*AuthUserUserPermission, error) + func AuthUserUserPermissionsByPermissionID(db XODB, permissionID int) ([]*AuthUserUserPermission, error) + func AuthUserUserPermissionsByUserID(db XODB, userID int) ([]*AuthUserUserPermission, error) + func (auup *AuthUserUserPermission) AuthPermission(db XODB) (*AuthPermission, error) + func (auup *AuthUserUserPermission) AuthUser(db XODB) (*AuthUser, error) + func (auup *AuthUserUserPermission) Delete(db XODB) error + func (auup *AuthUserUserPermission) Deleted() bool + func (auup *AuthUserUserPermission) Exists() bool + func (auup *AuthUserUserPermission) Insert(db XODB) error + func (auup *AuthUserUserPermission) Save(db XODB) error + func (auup *AuthUserUserPermission) Update(db XODB) error + func (auup *AuthUserUserPermission) Upsert(db XODB) error + type DjangoAdminLog struct + ActionFlag int16 + ActionTime *time.Time + ChangeMessage string + ContentTypeID sql.NullInt64 + ID int + ObjectID sql.NullString + ObjectRepr string + UserID int + func DjangoAdminLogByID(db XODB, id int) (*DjangoAdminLog, error) + func DjangoAdminLogsByContentTypeID(db XODB, contentTypeID sql.NullInt64) ([]*DjangoAdminLog, error) + func DjangoAdminLogsByUserID(db XODB, userID int) ([]*DjangoAdminLog, error) + func (dal *DjangoAdminLog) AuthUser(db XODB) (*AuthUser, error) + func (dal *DjangoAdminLog) Delete(db XODB) error + func (dal *DjangoAdminLog) Deleted() bool + func (dal *DjangoAdminLog) DjangoContentType(db XODB) (*DjangoContentType, error) + func (dal *DjangoAdminLog) Exists() bool + func (dal *DjangoAdminLog) Insert(db XODB) error + func (dal *DjangoAdminLog) Save(db XODB) error + func (dal *DjangoAdminLog) Update(db XODB) error + func (dal *DjangoAdminLog) Upsert(db XODB) error + type DjangoContentType struct + AppLabel string + ID int + Model string + func DjangoContentTypeByAppLabelModel(db XODB, appLabel string, model string) (*DjangoContentType, error) + func DjangoContentTypeByID(db XODB, id int) (*DjangoContentType, error) + func (dct *DjangoContentType) Delete(db XODB) error + func (dct *DjangoContentType) Deleted() bool + func (dct *DjangoContentType) Exists() bool + func (dct *DjangoContentType) Insert(db XODB) error + func (dct *DjangoContentType) Save(db XODB) error + func (dct *DjangoContentType) Update(db XODB) error + func (dct *DjangoContentType) Upsert(db XODB) error + type DjangoMigration struct + App string + Applied *time.Time + ID int + Name string + func DjangoMigrationByID(db XODB, id int) (*DjangoMigration, error) + func (dm *DjangoMigration) Delete(db XODB) error + func (dm *DjangoMigration) Deleted() bool + func (dm *DjangoMigration) Exists() bool + func (dm *DjangoMigration) Insert(db XODB) error + func (dm *DjangoMigration) Save(db XODB) error + func (dm *DjangoMigration) Update(db XODB) error + func (dm *DjangoMigration) Upsert(db XODB) error + type DjangoSession struct + ExpireDate *time.Time + SessionData string + SessionKey string + func DjangoSessionBySessionKey(db XODB, sessionKey string) (*DjangoSession, error) + func DjangoSessionsByExpireDate(db XODB, expireDate *time.Time) ([]*DjangoSession, error) + func DjangoSessionsBySessionKey(db XODB, sessionKey string) ([]*DjangoSession, error) + func (ds *DjangoSession) Delete(db XODB) error + func (ds *DjangoSession) Deleted() bool + func (ds *DjangoSession) Exists() bool + func (ds *DjangoSession) Insert(db XODB) error + func (ds *DjangoSession) Save(db XODB) error + func (ds *DjangoSession) Update(db XODB) error + func (ds *DjangoSession) Upsert(db XODB) error + type ScannerValuer interface + type Slice []ScannerValuer + type StringSlice []string + func (ss *StringSlice) Scan(src interface{}) error + func (ss StringSlice) Value() (driver.Value, error) + type XODB interface + Exec func(string, ...interface{}) (sql.Result, error) + Query func(string, ...interface{}) (*sql.Rows, error) + QueryRow func(string, ...interface{}) *sql.Row