Documentation ¶
Overview ¶
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Package postgres contains the types for schema 'public'.
Index ¶
- Variables
- type AuthGroup
- type AuthGroupPermission
- 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
- 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
- type AuthUserGroup
- 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
- 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
- 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
- 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
- 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
- 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
- type Slice
- type StringSlice
- type XODB
Constants ¶
This section is empty.
Variables ¶
var XOLog = func(string, ...interface{}) {}
XOLog provides the log func used by generated queries.
Functions ¶
This section is empty.
Types ¶
type AuthGroup ¶
type AuthGroup struct { ID int // id Name string // name // contains filtered or unexported fields }
AuthGroup represents a row from public.auth_group.
func AuthGroupByID ¶
AuthGroupByID retrieves a row from 'public.auth_group' as a AuthGroup.
Generated from index 'auth_group_pkey'.
func AuthGroupByName ¶
AuthGroupByName retrieves a row from 'public.auth_group' as a AuthGroup.
Generated from index 'auth_group_name_key'.
func AuthGroupsByName ¶
AuthGroupsByName retrieves a row from 'public.auth_group' as a AuthGroup.
Generated from index 'auth_group_name_a6ea08ec_like'.
func (*AuthGroup) Deleted ¶
Deleted provides information if the AuthGroup has been deleted from the database.
type AuthGroupPermission ¶
type AuthGroupPermission struct { ID int // id GroupID int // group_id PermissionID int // permission_id // contains filtered or unexported fields }
AuthGroupPermission represents a row from public.auth_group_permissions.
func AuthGroupPermissionByGroupIDPermissionID ¶
func AuthGroupPermissionByGroupIDPermissionID(db XODB, groupID int, permissionID int) (*AuthGroupPermission, error)
AuthGroupPermissionByGroupIDPermissionID retrieves a row from 'public.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permissions_group_id_0cd325b0_uniq'.
func AuthGroupPermissionByID ¶
func AuthGroupPermissionByID(db XODB, id int) (*AuthGroupPermission, error)
AuthGroupPermissionByID retrieves a row from 'public.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permissions_pkey'.
func AuthGroupPermissionsByGroupID ¶
func AuthGroupPermissionsByGroupID(db XODB, groupID int) ([]*AuthGroupPermission, error)
AuthGroupPermissionsByGroupID retrieves a row from 'public.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permissions_0e939a4f'.
func AuthGroupPermissionsByPermissionID ¶
func AuthGroupPermissionsByPermissionID(db XODB, permissionID int) ([]*AuthGroupPermission, error)
AuthGroupPermissionsByPermissionID retrieves a row from 'public.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permissions_8373b171'.
func (*AuthGroupPermission) AuthGroup ¶
func (agp *AuthGroupPermission) AuthGroup(db XODB) (*AuthGroup, error)
AuthGroup returns the AuthGroup associated with the AuthGroupPermission's GroupID (group_id).
Generated from foreign key 'auth_group_permissions_group_id_b120cbf9_fk_auth_group_id'.
func (*AuthGroupPermission) AuthPermission ¶
func (agp *AuthGroupPermission) AuthPermission(db XODB) (*AuthPermission, error)
AuthPermission returns the AuthPermission associated with the AuthGroupPermission's PermissionID (permission_id).
Generated from foreign key 'auth_group_permiss_permission_id_84c5c92e_fk_auth_permission_id'.
func (*AuthGroupPermission) Delete ¶
func (agp *AuthGroupPermission) Delete(db XODB) error
Delete deletes the AuthGroupPermission from the database.
func (*AuthGroupPermission) Deleted ¶
func (agp *AuthGroupPermission) Deleted() bool
Deleted provides information if the AuthGroupPermission has been deleted from the database.
func (*AuthGroupPermission) Exists ¶
func (agp *AuthGroupPermission) Exists() bool
Exists determines if the AuthGroupPermission exists in the database.
func (*AuthGroupPermission) Insert ¶
func (agp *AuthGroupPermission) Insert(db XODB) error
Insert inserts the AuthGroupPermission to the database.
func (*AuthGroupPermission) Save ¶
func (agp *AuthGroupPermission) Save(db XODB) error
Save saves the AuthGroupPermission to the database.
func (*AuthGroupPermission) Update ¶
func (agp *AuthGroupPermission) Update(db XODB) error
Update updates the AuthGroupPermission in the database.
func (*AuthGroupPermission) Upsert ¶
func (agp *AuthGroupPermission) Upsert(db XODB) error
Upsert performs an upsert for AuthGroupPermission.
NOTE: PostgreSQL 9.5+ only
type AuthPermission ¶
type AuthPermission struct { ID int // id Name string // name ContentTypeID int // content_type_id Codename string // codename // contains filtered or unexported fields }
AuthPermission represents a row from public.auth_permission.
func AuthPermissionByContentTypeIDCodename ¶
func AuthPermissionByContentTypeIDCodename(db XODB, contentTypeID int, codename string) (*AuthPermission, error)
AuthPermissionByContentTypeIDCodename retrieves a row from 'public.auth_permission' as a AuthPermission.
Generated from index 'auth_permission_content_type_id_01ab375a_uniq'.
func AuthPermissionByID ¶
func AuthPermissionByID(db XODB, id int) (*AuthPermission, error)
AuthPermissionByID retrieves a row from 'public.auth_permission' as a AuthPermission.
Generated from index 'auth_permission_pkey'.
func AuthPermissionsByContentTypeID ¶
func AuthPermissionsByContentTypeID(db XODB, contentTypeID int) ([]*AuthPermission, error)
AuthPermissionsByContentTypeID retrieves a row from 'public.auth_permission' as a AuthPermission.
Generated from index 'auth_permission_417f1b1c'.
func (*AuthPermission) Delete ¶
func (ap *AuthPermission) Delete(db XODB) error
Delete deletes the AuthPermission from the database.
func (*AuthPermission) Deleted ¶
func (ap *AuthPermission) Deleted() bool
Deleted provides information if the AuthPermission has been deleted from the database.
func (*AuthPermission) DjangoContentType ¶
func (ap *AuthPermission) DjangoContentType(db XODB) (*DjangoContentType, error)
DjangoContentType returns the DjangoContentType associated with the AuthPermission's ContentTypeID (content_type_id).
Generated from foreign key 'auth_permiss_content_type_id_2f476e4b_fk_django_content_type_id'.
func (*AuthPermission) Exists ¶
func (ap *AuthPermission) Exists() bool
Exists determines if the AuthPermission exists in the database.
func (*AuthPermission) Insert ¶
func (ap *AuthPermission) Insert(db XODB) error
Insert inserts the AuthPermission to the database.
func (*AuthPermission) Save ¶
func (ap *AuthPermission) Save(db XODB) error
Save saves the AuthPermission to the database.
func (*AuthPermission) Update ¶
func (ap *AuthPermission) Update(db XODB) error
Update updates the AuthPermission in the database.
func (*AuthPermission) Upsert ¶
func (ap *AuthPermission) Upsert(db XODB) error
Upsert performs an upsert for AuthPermission.
NOTE: PostgreSQL 9.5+ only
type AuthUser ¶
type AuthUser struct { ID int // id Password string // password LastLogin pq.NullTime // last_login IsSuperuser bool // is_superuser Username string // username FirstName string // first_name LastName string // last_name Email string // email IsStaff bool // is_staff IsActive bool // is_active DateJoined *time.Time // date_joined // contains filtered or unexported fields }
AuthUser represents a row from public.auth_user.
func AuthUserByID ¶
AuthUserByID retrieves a row from 'public.auth_user' as a AuthUser.
Generated from index 'auth_user_pkey'.
func AuthUserByUsername ¶
AuthUserByUsername retrieves a row from 'public.auth_user' as a AuthUser.
Generated from index 'auth_user_username_key'.
func AuthUsersByUsername ¶
AuthUsersByUsername retrieves a row from 'public.auth_user' as a AuthUser.
Generated from index 'auth_user_username_6821ab7c_like'.
func (*AuthUser) Deleted ¶
Deleted provides information if the AuthUser has been deleted from the database.
type AuthUserGroup ¶
type AuthUserGroup struct { ID int // id UserID int // user_id GroupID int // group_id // contains filtered or unexported fields }
AuthUserGroup represents a row from public.auth_user_groups.
func AuthUserGroupByID ¶
func AuthUserGroupByID(db XODB, id int) (*AuthUserGroup, error)
AuthUserGroupByID retrieves a row from 'public.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_groups_pkey'.
func AuthUserGroupByUserIDGroupID ¶
func AuthUserGroupByUserIDGroupID(db XODB, userID int, groupID int) (*AuthUserGroup, error)
AuthUserGroupByUserIDGroupID retrieves a row from 'public.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_groups_user_id_94350c0c_uniq'.
func AuthUserGroupsByGroupID ¶
func AuthUserGroupsByGroupID(db XODB, groupID int) ([]*AuthUserGroup, error)
AuthUserGroupsByGroupID retrieves a row from 'public.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_groups_0e939a4f'.
func AuthUserGroupsByUserID ¶
func AuthUserGroupsByUserID(db XODB, userID int) ([]*AuthUserGroup, error)
AuthUserGroupsByUserID retrieves a row from 'public.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_groups_e8701ad4'.
func (*AuthUserGroup) AuthGroup ¶
func (aug *AuthUserGroup) AuthGroup(db XODB) (*AuthGroup, error)
AuthGroup returns the AuthGroup associated with the AuthUserGroup's GroupID (group_id).
Generated from foreign key 'auth_user_groups_group_id_97559544_fk_auth_group_id'.
func (*AuthUserGroup) AuthUser ¶
func (aug *AuthUserGroup) AuthUser(db XODB) (*AuthUser, error)
AuthUser returns the AuthUser associated with the AuthUserGroup's UserID (user_id).
Generated from foreign key 'auth_user_groups_user_id_6a12ed8b_fk_auth_user_id'.
func (*AuthUserGroup) Delete ¶
func (aug *AuthUserGroup) Delete(db XODB) error
Delete deletes the AuthUserGroup from the database.
func (*AuthUserGroup) Deleted ¶
func (aug *AuthUserGroup) Deleted() bool
Deleted provides information if the AuthUserGroup has been deleted from the database.
func (*AuthUserGroup) Exists ¶
func (aug *AuthUserGroup) Exists() bool
Exists determines if the AuthUserGroup exists in the database.
func (*AuthUserGroup) Insert ¶
func (aug *AuthUserGroup) Insert(db XODB) error
Insert inserts the AuthUserGroup to the database.
func (*AuthUserGroup) Save ¶
func (aug *AuthUserGroup) Save(db XODB) error
Save saves the AuthUserGroup to the database.
func (*AuthUserGroup) Update ¶
func (aug *AuthUserGroup) Update(db XODB) error
Update updates the AuthUserGroup in the database.
func (*AuthUserGroup) Upsert ¶
func (aug *AuthUserGroup) Upsert(db XODB) error
Upsert performs an upsert for AuthUserGroup.
NOTE: PostgreSQL 9.5+ only
type AuthUserUserPermission ¶
type AuthUserUserPermission struct { ID int // id UserID int // user_id PermissionID int // permission_id // contains filtered or unexported fields }
AuthUserUserPermission represents a row from public.auth_user_user_permissions.
func AuthUserUserPermissionByID ¶
func AuthUserUserPermissionByID(db XODB, id int) (*AuthUserUserPermission, error)
AuthUserUserPermissionByID retrieves a row from 'public.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_permissions_pkey'.
func AuthUserUserPermissionByUserIDPermissionID ¶
func AuthUserUserPermissionByUserIDPermissionID(db XODB, userID int, permissionID int) (*AuthUserUserPermission, error)
AuthUserUserPermissionByUserIDPermissionID retrieves a row from 'public.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_permissions_user_id_14a6b632_uniq'.
func AuthUserUserPermissionsByPermissionID ¶
func AuthUserUserPermissionsByPermissionID(db XODB, permissionID int) ([]*AuthUserUserPermission, error)
AuthUserUserPermissionsByPermissionID retrieves a row from 'public.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_permissions_8373b171'.
func AuthUserUserPermissionsByUserID ¶
func AuthUserUserPermissionsByUserID(db XODB, userID int) ([]*AuthUserUserPermission, error)
AuthUserUserPermissionsByUserID retrieves a row from 'public.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_permissions_e8701ad4'.
func (*AuthUserUserPermission) AuthPermission ¶
func (auup *AuthUserUserPermission) AuthPermission(db XODB) (*AuthPermission, error)
AuthPermission returns the AuthPermission associated with the AuthUserUserPermission's PermissionID (permission_id).
Generated from foreign key 'auth_user_user_per_permission_id_1fbb5f2c_fk_auth_permission_id'.
func (*AuthUserUserPermission) AuthUser ¶
func (auup *AuthUserUserPermission) AuthUser(db XODB) (*AuthUser, error)
AuthUser returns the AuthUser associated with the AuthUserUserPermission's UserID (user_id).
Generated from foreign key 'auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id'.
func (*AuthUserUserPermission) Delete ¶
func (auup *AuthUserUserPermission) Delete(db XODB) error
Delete deletes the AuthUserUserPermission from the database.
func (*AuthUserUserPermission) Deleted ¶
func (auup *AuthUserUserPermission) Deleted() bool
Deleted provides information if the AuthUserUserPermission has been deleted from the database.
func (*AuthUserUserPermission) Exists ¶
func (auup *AuthUserUserPermission) Exists() bool
Exists determines if the AuthUserUserPermission exists in the database.
func (*AuthUserUserPermission) Insert ¶
func (auup *AuthUserUserPermission) Insert(db XODB) error
Insert inserts the AuthUserUserPermission to the database.
func (*AuthUserUserPermission) Save ¶
func (auup *AuthUserUserPermission) Save(db XODB) error
Save saves the AuthUserUserPermission to the database.
func (*AuthUserUserPermission) Update ¶
func (auup *AuthUserUserPermission) Update(db XODB) error
Update updates the AuthUserUserPermission in the database.
func (*AuthUserUserPermission) Upsert ¶
func (auup *AuthUserUserPermission) Upsert(db XODB) error
Upsert performs an upsert for AuthUserUserPermission.
NOTE: PostgreSQL 9.5+ only
type DjangoAdminLog ¶
type DjangoAdminLog struct { ID int // id ActionTime *time.Time // action_time ObjectID sql.NullString // object_id ObjectRepr string // object_repr ActionFlag int16 // action_flag ChangeMessage string // change_message ContentTypeID sql.NullInt64 // content_type_id UserID int // user_id // contains filtered or unexported fields }
DjangoAdminLog represents a row from public.django_admin_log.
func DjangoAdminLogByID ¶
func DjangoAdminLogByID(db XODB, id int) (*DjangoAdminLog, error)
DjangoAdminLogByID retrieves a row from 'public.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_admin_log_pkey'.
func DjangoAdminLogsByContentTypeID ¶
func DjangoAdminLogsByContentTypeID(db XODB, contentTypeID sql.NullInt64) ([]*DjangoAdminLog, error)
DjangoAdminLogsByContentTypeID retrieves a row from 'public.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_admin_log_417f1b1c'.
func DjangoAdminLogsByUserID ¶
func DjangoAdminLogsByUserID(db XODB, userID int) ([]*DjangoAdminLog, error)
DjangoAdminLogsByUserID retrieves a row from 'public.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_admin_log_e8701ad4'.
func (*DjangoAdminLog) AuthUser ¶
func (dal *DjangoAdminLog) AuthUser(db XODB) (*AuthUser, error)
AuthUser returns the AuthUser associated with the DjangoAdminLog's UserID (user_id).
Generated from foreign key 'django_admin_log_user_id_c564eba6_fk_auth_user_id'.
func (*DjangoAdminLog) Delete ¶
func (dal *DjangoAdminLog) Delete(db XODB) error
Delete deletes the DjangoAdminLog from the database.
func (*DjangoAdminLog) Deleted ¶
func (dal *DjangoAdminLog) Deleted() bool
Deleted provides information if the DjangoAdminLog has been deleted from the database.
func (*DjangoAdminLog) DjangoContentType ¶
func (dal *DjangoAdminLog) DjangoContentType(db XODB) (*DjangoContentType, error)
DjangoContentType returns the DjangoContentType associated with the DjangoAdminLog's ContentTypeID (content_type_id).
Generated from foreign key 'django_admin_content_type_id_c4bce8eb_fk_django_content_type_id'.
func (*DjangoAdminLog) Exists ¶
func (dal *DjangoAdminLog) Exists() bool
Exists determines if the DjangoAdminLog exists in the database.
func (*DjangoAdminLog) Insert ¶
func (dal *DjangoAdminLog) Insert(db XODB) error
Insert inserts the DjangoAdminLog to the database.
func (*DjangoAdminLog) Save ¶
func (dal *DjangoAdminLog) Save(db XODB) error
Save saves the DjangoAdminLog to the database.
func (*DjangoAdminLog) Update ¶
func (dal *DjangoAdminLog) Update(db XODB) error
Update updates the DjangoAdminLog in the database.
func (*DjangoAdminLog) Upsert ¶
func (dal *DjangoAdminLog) Upsert(db XODB) error
Upsert performs an upsert for DjangoAdminLog.
NOTE: PostgreSQL 9.5+ only
type DjangoContentType ¶
type DjangoContentType struct { ID int // id AppLabel string // app_label Model string // model // contains filtered or unexported fields }
DjangoContentType represents a row from public.django_content_type.
func DjangoContentTypeByAppLabelModel ¶
func DjangoContentTypeByAppLabelModel(db XODB, appLabel string, model string) (*DjangoContentType, error)
DjangoContentTypeByAppLabelModel retrieves a row from 'public.django_content_type' as a DjangoContentType.
Generated from index 'django_content_type_app_label_76bd3d3b_uniq'.
func DjangoContentTypeByID ¶
func DjangoContentTypeByID(db XODB, id int) (*DjangoContentType, error)
DjangoContentTypeByID retrieves a row from 'public.django_content_type' as a DjangoContentType.
Generated from index 'django_content_type_pkey'.
func (*DjangoContentType) Delete ¶
func (dct *DjangoContentType) Delete(db XODB) error
Delete deletes the DjangoContentType from the database.
func (*DjangoContentType) Deleted ¶
func (dct *DjangoContentType) Deleted() bool
Deleted provides information if the DjangoContentType has been deleted from the database.
func (*DjangoContentType) Exists ¶
func (dct *DjangoContentType) Exists() bool
Exists determines if the DjangoContentType exists in the database.
func (*DjangoContentType) Insert ¶
func (dct *DjangoContentType) Insert(db XODB) error
Insert inserts the DjangoContentType to the database.
func (*DjangoContentType) Save ¶
func (dct *DjangoContentType) Save(db XODB) error
Save saves the DjangoContentType to the database.
func (*DjangoContentType) Update ¶
func (dct *DjangoContentType) Update(db XODB) error
Update updates the DjangoContentType in the database.
func (*DjangoContentType) Upsert ¶
func (dct *DjangoContentType) Upsert(db XODB) error
Upsert performs an upsert for DjangoContentType.
NOTE: PostgreSQL 9.5+ only
type DjangoMigration ¶
type DjangoMigration struct { ID int // id App string // app Name string // name Applied *time.Time // applied // contains filtered or unexported fields }
DjangoMigration represents a row from public.django_migrations.
func DjangoMigrationByID ¶
func DjangoMigrationByID(db XODB, id int) (*DjangoMigration, error)
DjangoMigrationByID retrieves a row from 'public.django_migrations' as a DjangoMigration.
Generated from index 'django_migrations_pkey'.
func (*DjangoMigration) Delete ¶
func (dm *DjangoMigration) Delete(db XODB) error
Delete deletes the DjangoMigration from the database.
func (*DjangoMigration) Deleted ¶
func (dm *DjangoMigration) Deleted() bool
Deleted provides information if the DjangoMigration has been deleted from the database.
func (*DjangoMigration) Exists ¶
func (dm *DjangoMigration) Exists() bool
Exists determines if the DjangoMigration exists in the database.
func (*DjangoMigration) Insert ¶
func (dm *DjangoMigration) Insert(db XODB) error
Insert inserts the DjangoMigration to the database.
func (*DjangoMigration) Save ¶
func (dm *DjangoMigration) Save(db XODB) error
Save saves the DjangoMigration to the database.
func (*DjangoMigration) Update ¶
func (dm *DjangoMigration) Update(db XODB) error
Update updates the DjangoMigration in the database.
func (*DjangoMigration) Upsert ¶
func (dm *DjangoMigration) Upsert(db XODB) error
Upsert performs an upsert for DjangoMigration.
NOTE: PostgreSQL 9.5+ only
type DjangoSession ¶
type DjangoSession struct { SessionKey string // session_key SessionData string // session_data ExpireDate *time.Time // expire_date // contains filtered or unexported fields }
DjangoSession represents a row from public.django_session.
func DjangoSessionBySessionKey ¶
func DjangoSessionBySessionKey(db XODB, sessionKey string) (*DjangoSession, error)
DjangoSessionBySessionKey retrieves a row from 'public.django_session' as a DjangoSession.
Generated from index 'django_session_pkey'.
func DjangoSessionsByExpireDate ¶
func DjangoSessionsByExpireDate(db XODB, expireDate *time.Time) ([]*DjangoSession, error)
DjangoSessionsByExpireDate retrieves a row from 'public.django_session' as a DjangoSession.
Generated from index 'django_session_de54fa62'.
func DjangoSessionsBySessionKey ¶
func DjangoSessionsBySessionKey(db XODB, sessionKey string) ([]*DjangoSession, error)
DjangoSessionsBySessionKey retrieves a row from 'public.django_session' as a DjangoSession.
Generated from index 'django_session_session_key_c0390e0f_like'.
func (*DjangoSession) Delete ¶
func (ds *DjangoSession) Delete(db XODB) error
Delete deletes the DjangoSession from the database.
func (*DjangoSession) Deleted ¶
func (ds *DjangoSession) Deleted() bool
Deleted provides information if the DjangoSession has been deleted from the database.
func (*DjangoSession) Exists ¶
func (ds *DjangoSession) Exists() bool
Exists determines if the DjangoSession exists in the database.
func (*DjangoSession) Insert ¶
func (ds *DjangoSession) Insert(db XODB) error
Insert inserts the DjangoSession to the database.
func (*DjangoSession) Save ¶
func (ds *DjangoSession) Save(db XODB) error
Save saves the DjangoSession to the database.
func (*DjangoSession) Update ¶
func (ds *DjangoSession) Update(db XODB) error
Update updates the DjangoSession in the database.
func (*DjangoSession) Upsert ¶
func (ds *DjangoSession) Upsert(db XODB) error
Upsert performs an upsert for DjangoSession.
NOTE: PostgreSQL 9.5+ only
type ScannerValuer ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings.
func (*StringSlice) Scan ¶
func (ss *StringSlice) Scan(src interface{}) error
Scan satisfies the sql.Scanner interface for StringSlice.
type XODB ¶
type XODB interface { Exec(string, ...interface{}) (sql.Result, error) Query(string, ...interface{}) (*sql.Rows, error) QueryRow(string, ...interface{}) *sql.Row }
XODB is the common interface for database operations that can be used with types from schema 'public'.
This should work with database/sql.DB and database/sql.Tx.