Documentation ¶
Overview ¶
Package oracle contains generated code for schema 'django'.
Index ¶
- func Errorf(s string, v ...interface{})
- func Logf(s string, v ...interface{})
- func SetErrorLogger(logger interface{})
- func SetLogger(logger interface{})
- type AuthGroup
- func (ag *AuthGroup) Delete(ctx context.Context, db DB) error
- func (ag *AuthGroup) Deleted() bool
- func (ag *AuthGroup) Exists() bool
- func (ag *AuthGroup) Insert(ctx context.Context, db DB) error
- func (ag *AuthGroup) Save(ctx context.Context, db DB) error
- func (ag *AuthGroup) Update(ctx context.Context, db DB) error
- func (ag *AuthGroup) Upsert(ctx context.Context, db DB) error
- type AuthGroupPermission
- func AuthGroupPermissionByGroupIDPermissionID(ctx context.Context, db DB, groupID, permissionID int64) (*AuthGroupPermission, error)
- func AuthGroupPermissionByID(ctx context.Context, db DB, id int64) (*AuthGroupPermission, error)
- func AuthGroupPermissionsByGroupID(ctx context.Context, db DB, groupID int64) ([]*AuthGroupPermission, error)
- func AuthGroupPermissionsByPermissionID(ctx context.Context, db DB, permissionID int64) ([]*AuthGroupPermission, error)
- func (agp *AuthGroupPermission) AuthGroup(ctx context.Context, db DB) (*AuthGroup, error)
- func (agp *AuthGroupPermission) AuthPermission(ctx context.Context, db DB) (*AuthPermission, error)
- func (agp *AuthGroupPermission) Delete(ctx context.Context, db DB) error
- func (agp *AuthGroupPermission) Deleted() bool
- func (agp *AuthGroupPermission) Exists() bool
- func (agp *AuthGroupPermission) Insert(ctx context.Context, db DB) error
- func (agp *AuthGroupPermission) Save(ctx context.Context, db DB) error
- func (agp *AuthGroupPermission) Update(ctx context.Context, db DB) error
- func (agp *AuthGroupPermission) Upsert(ctx context.Context, db DB) error
- type AuthPermission
- func AuthPermissionByContentTypeID(ctx context.Context, db DB, contentTypeID int64) ([]*AuthPermission, error)
- func AuthPermissionByContentTypeIDCodename(ctx context.Context, db DB, contentTypeID int64, codename sql.NullString) (*AuthPermission, error)
- func AuthPermissionByID(ctx context.Context, db DB, id int64) (*AuthPermission, error)
- func (ap *AuthPermission) Delete(ctx context.Context, db DB) error
- func (ap *AuthPermission) Deleted() bool
- func (ap *AuthPermission) DjangoContentType(ctx context.Context, db DB) (*DjangoContentType, error)
- func (ap *AuthPermission) Exists() bool
- func (ap *AuthPermission) Insert(ctx context.Context, db DB) error
- func (ap *AuthPermission) Save(ctx context.Context, db DB) error
- func (ap *AuthPermission) Update(ctx context.Context, db DB) error
- func (ap *AuthPermission) Upsert(ctx context.Context, db DB) error
- type AuthUser
- func (au *AuthUser) Delete(ctx context.Context, db DB) error
- func (au *AuthUser) Deleted() bool
- func (au *AuthUser) Exists() bool
- func (au *AuthUser) Insert(ctx context.Context, db DB) error
- func (au *AuthUser) Save(ctx context.Context, db DB) error
- func (au *AuthUser) Update(ctx context.Context, db DB) error
- func (au *AuthUser) Upsert(ctx context.Context, db DB) error
- type AuthUserGroup
- func AuthUserGroupByID(ctx context.Context, db DB, id int64) (*AuthUserGroup, error)
- func AuthUserGroupByUserIDGroupID(ctx context.Context, db DB, userID, groupID int64) (*AuthUserGroup, error)
- func AuthUserGroupsByGroupID(ctx context.Context, db DB, groupID int64) ([]*AuthUserGroup, error)
- func AuthUserGroupsByUserID(ctx context.Context, db DB, userID int64) ([]*AuthUserGroup, error)
- func (aug *AuthUserGroup) AuthGroup(ctx context.Context, db DB) (*AuthGroup, error)
- func (aug *AuthUserGroup) AuthUser(ctx context.Context, db DB) (*AuthUser, error)
- func (aug *AuthUserGroup) Delete(ctx context.Context, db DB) error
- func (aug *AuthUserGroup) Deleted() bool
- func (aug *AuthUserGroup) Exists() bool
- func (aug *AuthUserGroup) Insert(ctx context.Context, db DB) error
- func (aug *AuthUserGroup) Save(ctx context.Context, db DB) error
- func (aug *AuthUserGroup) Update(ctx context.Context, db DB) error
- func (aug *AuthUserGroup) Upsert(ctx context.Context, db DB) error
- type AuthUserUserPermission
- func AuthUserUserPermissionByID(ctx context.Context, db DB, id int64) (*AuthUserUserPermission, error)
- func AuthUserUserPermissionByUserIDPermissionID(ctx context.Context, db DB, userID, permissionID int64) (*AuthUserUserPermission, error)
- func AuthUserUserPermissionsByPermissionID(ctx context.Context, db DB, permissionID int64) ([]*AuthUserUserPermission, error)
- func AuthUserUserPermissionsByUserID(ctx context.Context, db DB, userID int64) ([]*AuthUserUserPermission, error)
- func (auup *AuthUserUserPermission) AuthPermission(ctx context.Context, db DB) (*AuthPermission, error)
- func (auup *AuthUserUserPermission) AuthUser(ctx context.Context, db DB) (*AuthUser, error)
- func (auup *AuthUserUserPermission) Delete(ctx context.Context, db DB) error
- func (auup *AuthUserUserPermission) Deleted() bool
- func (auup *AuthUserUserPermission) Exists() bool
- func (auup *AuthUserUserPermission) Insert(ctx context.Context, db DB) error
- func (auup *AuthUserUserPermission) Save(ctx context.Context, db DB) error
- func (auup *AuthUserUserPermission) Update(ctx context.Context, db DB) error
- func (auup *AuthUserUserPermission) Upsert(ctx context.Context, db DB) error
- type Author
- func (a *Author) Delete(ctx context.Context, db DB) error
- func (a *Author) Deleted() bool
- func (a *Author) Exists() bool
- func (a *Author) Insert(ctx context.Context, db DB) error
- func (a *Author) Save(ctx context.Context, db DB) error
- func (a *Author) Update(ctx context.Context, db DB) error
- func (a *Author) Upsert(ctx context.Context, db DB) error
- type Book
- func (b *Book) Author(ctx context.Context, db DB) (*Author, error)
- func (b *Book) Delete(ctx context.Context, db DB) error
- func (b *Book) Deleted() bool
- func (b *Book) Exists() bool
- func (b *Book) Insert(ctx context.Context, db DB) error
- func (b *Book) Save(ctx context.Context, db DB) error
- func (b *Book) Update(ctx context.Context, db DB) error
- func (b *Book) Upsert(ctx context.Context, db DB) error
- type BooksTag
- func BooksTagByBookIDTagID(ctx context.Context, db DB, bookID, tagID int64) (*BooksTag, error)
- func BooksTagByID(ctx context.Context, db DB, id int64) (*BooksTag, error)
- func BooksTagsByBookID(ctx context.Context, db DB, bookID int64) ([]*BooksTag, error)
- func BooksTagsByTagID(ctx context.Context, db DB, tagID int64) ([]*BooksTag, error)
- func (bt *BooksTag) Book(ctx context.Context, db DB) (*Book, error)
- func (bt *BooksTag) Delete(ctx context.Context, db DB) error
- func (bt *BooksTag) Deleted() bool
- func (bt *BooksTag) Exists() bool
- func (bt *BooksTag) Insert(ctx context.Context, db DB) error
- func (bt *BooksTag) Save(ctx context.Context, db DB) error
- func (bt *BooksTag) Tag(ctx context.Context, db DB) (*Tag, error)
- func (bt *BooksTag) Update(ctx context.Context, db DB) error
- func (bt *BooksTag) Upsert(ctx context.Context, db DB) error
- type DB
- type DjangoAdminLog
- func DjangoAdminLogByContentTypeID(ctx context.Context, db DB, contentTypeID sql.NullInt64) ([]*DjangoAdminLog, error)
- func DjangoAdminLogByID(ctx context.Context, db DB, id int64) (*DjangoAdminLog, error)
- func DjangoAdminLogByUserID(ctx context.Context, db DB, userID int64) ([]*DjangoAdminLog, error)
- func (dal *DjangoAdminLog) AuthUser(ctx context.Context, db DB) (*AuthUser, error)
- func (dal *DjangoAdminLog) Delete(ctx context.Context, db DB) error
- func (dal *DjangoAdminLog) Deleted() bool
- func (dal *DjangoAdminLog) DjangoContentType(ctx context.Context, db DB) (*DjangoContentType, error)
- func (dal *DjangoAdminLog) Exists() bool
- func (dal *DjangoAdminLog) Insert(ctx context.Context, db DB) error
- func (dal *DjangoAdminLog) Save(ctx context.Context, db DB) error
- func (dal *DjangoAdminLog) Update(ctx context.Context, db DB) error
- func (dal *DjangoAdminLog) Upsert(ctx context.Context, db DB) error
- type DjangoContentType
- func (dct *DjangoContentType) Delete(ctx context.Context, db DB) error
- func (dct *DjangoContentType) Deleted() bool
- func (dct *DjangoContentType) Exists() bool
- func (dct *DjangoContentType) Insert(ctx context.Context, db DB) error
- func (dct *DjangoContentType) Save(ctx context.Context, db DB) error
- func (dct *DjangoContentType) Update(ctx context.Context, db DB) error
- func (dct *DjangoContentType) Upsert(ctx context.Context, db DB) error
- type DjangoMigration
- func (dm *DjangoMigration) Delete(ctx context.Context, db DB) error
- func (dm *DjangoMigration) Deleted() bool
- func (dm *DjangoMigration) Exists() bool
- func (dm *DjangoMigration) Insert(ctx context.Context, db DB) error
- func (dm *DjangoMigration) Save(ctx context.Context, db DB) error
- func (dm *DjangoMigration) Update(ctx context.Context, db DB) error
- func (dm *DjangoMigration) Upsert(ctx context.Context, db DB) error
- type DjangoSession
- func (ds *DjangoSession) Delete(ctx context.Context, db DB) error
- func (ds *DjangoSession) Deleted() bool
- func (ds *DjangoSession) Exists() bool
- func (ds *DjangoSession) Insert(ctx context.Context, db DB) error
- func (ds *DjangoSession) Save(ctx context.Context, db DB) error
- func (ds *DjangoSession) Update(ctx context.Context, db DB) error
- func (ds *DjangoSession) Upsert(ctx context.Context, db DB) error
- type ErrInsertFailed
- type ErrUpdateFailed
- type ErrUpsertFailed
- type Error
- type Tag
- func (t *Tag) Delete(ctx context.Context, db DB) error
- func (t *Tag) Deleted() bool
- func (t *Tag) Exists() bool
- func (t *Tag) Insert(ctx context.Context, db DB) error
- func (t *Tag) Save(ctx context.Context, db DB) error
- func (t *Tag) Update(ctx context.Context, db DB) error
- func (t *Tag) Upsert(ctx context.Context, db DB) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
func Errorf(s string, v ...interface{})
Errorf logs an error message using the package error logger.
func SetErrorLogger ¶
func SetErrorLogger(logger interface{})
SetErrorLogger sets the package error logger. Valid logger types:
io.Writer func(string, ...interface{}) (int, error) // fmt.Printf func(string, ...interface{}) // log.Printf
Types ¶
type AuthGroup ¶
type AuthGroup struct { ID int64 `json:"id"` // id Name sql.NullString `json:"name"` // name // contains filtered or unexported fields }
AuthGroup represents a row from 'django.auth_group'.
func AuthGroupByID ¶
AuthGroupByID retrieves a row from 'django.auth_group' as a AuthGroup.
Generated from index 'auth_group_id_idx'.
func AuthGroupByName ¶
AuthGroupByName retrieves a row from 'django.auth_group' as a AuthGroup.
Generated from index 'auth_group_name_idx'.
func (*AuthGroup) Deleted ¶
Deleted returns true when the AuthGroup has been marked for deletion from the database.
type AuthGroupPermission ¶
type AuthGroupPermission struct { ID int64 `json:"id"` // id GroupID int64 `json:"group_id"` // group_id PermissionID int64 `json:"permission_id"` // permission_id // contains filtered or unexported fields }
AuthGroupPermission represents a row from 'django.auth_group_permissions'.
func AuthGroupPermissionByGroupIDPermissionID ¶
func AuthGroupPermissionByGroupIDPermissionID(ctx context.Context, db DB, groupID, permissionID int64) (*AuthGroupPermission, error)
AuthGroupPermissionByGroupIDPermissionID retrieves a row from 'django.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_grou_group_id__0cd325b0_u'.
func AuthGroupPermissionByID ¶
AuthGroupPermissionByID retrieves a row from 'django.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permissions_id_idx'.
func AuthGroupPermissionsByGroupID ¶
func AuthGroupPermissionsByGroupID(ctx context.Context, db DB, groupID int64) ([]*AuthGroupPermission, error)
AuthGroupPermissionsByGroupID retrieves a row from 'django.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_group_id_b120cbf9'.
func AuthGroupPermissionsByPermissionID ¶
func AuthGroupPermissionsByPermissionID(ctx context.Context, db DB, permissionID int64) ([]*AuthGroupPermission, error)
AuthGroupPermissionsByPermissionID retrieves a row from 'django.auth_group_permissions' as a AuthGroupPermission.
Generated from index 'auth_group_permission_84c5c92e'.
func (*AuthGroupPermission) AuthGroup ¶
AuthGroup returns the AuthGroup associated with the AuthGroupPermission's (GroupID).
Generated from foreign key 'auth_grou_group_id_b120cbf9_f'.
func (*AuthGroupPermission) AuthPermission ¶
func (agp *AuthGroupPermission) AuthPermission(ctx context.Context, db DB) (*AuthPermission, error)
AuthPermission returns the AuthPermission associated with the AuthGroupPermission's (PermissionID).
Generated from foreign key 'auth_grou_permissio_84c5c92e_f'.
func (*AuthGroupPermission) Delete ¶
func (agp *AuthGroupPermission) Delete(ctx context.Context, db DB) error
Delete deletes the AuthGroupPermission from the database.
func (*AuthGroupPermission) Deleted ¶
func (agp *AuthGroupPermission) Deleted() bool
Deleted returns true when the AuthGroupPermission has been marked for deletion from the database.
func (*AuthGroupPermission) Exists ¶
func (agp *AuthGroupPermission) Exists() bool
Exists returns true when the AuthGroupPermission exists in the database.
func (*AuthGroupPermission) Insert ¶
func (agp *AuthGroupPermission) Insert(ctx context.Context, db DB) error
Insert inserts the AuthGroupPermission to the database.
func (*AuthGroupPermission) Save ¶
func (agp *AuthGroupPermission) Save(ctx context.Context, db DB) error
Save saves the AuthGroupPermission to the database.
type AuthPermission ¶
type AuthPermission struct { ID int64 `json:"id"` // id Name sql.NullString `json:"name"` // name ContentTypeID int64 `json:"content_type_id"` // content_type_id Codename sql.NullString `json:"codename"` // codename // contains filtered or unexported fields }
AuthPermission represents a row from 'django.auth_permission'.
func AuthPermissionByContentTypeID ¶
func AuthPermissionByContentTypeID(ctx context.Context, db DB, contentTypeID int64) ([]*AuthPermission, error)
AuthPermissionByContentTypeID retrieves a row from 'django.auth_permission' as a AuthPermission.
Generated from index 'auth_permi_content_ty_2f476e4b'.
func AuthPermissionByContentTypeIDCodename ¶
func AuthPermissionByContentTypeIDCodename(ctx context.Context, db DB, contentTypeID int64, codename sql.NullString) (*AuthPermission, error)
AuthPermissionByContentTypeIDCodename retrieves a row from 'django.auth_permission' as a AuthPermission.
Generated from index 'auth_perm_content_t_01ab375a_u'.
func AuthPermissionByID ¶
AuthPermissionByID retrieves a row from 'django.auth_permission' as a AuthPermission.
Generated from index 'auth_permission_id_idx'.
func (*AuthPermission) Delete ¶
func (ap *AuthPermission) Delete(ctx context.Context, db DB) error
Delete deletes the AuthPermission from the database.
func (*AuthPermission) Deleted ¶
func (ap *AuthPermission) Deleted() bool
Deleted returns true when the AuthPermission has been marked for deletion from the database.
func (*AuthPermission) DjangoContentType ¶
func (ap *AuthPermission) DjangoContentType(ctx context.Context, db DB) (*DjangoContentType, error)
DjangoContentType returns the DjangoContentType associated with the AuthPermission's (ContentTypeID).
Generated from foreign key 'auth_perm_content_t_2f476e4b_f'.
func (*AuthPermission) Exists ¶
func (ap *AuthPermission) Exists() bool
Exists returns true when the AuthPermission exists in the database.
func (*AuthPermission) Insert ¶
func (ap *AuthPermission) Insert(ctx context.Context, db DB) error
Insert inserts the AuthPermission to the database.
func (*AuthPermission) Save ¶
func (ap *AuthPermission) Save(ctx context.Context, db DB) error
Save saves the AuthPermission to the database.
type AuthUser ¶
type AuthUser struct { ID int64 `json:"id"` // id Password sql.NullString `json:"password"` // password LastLogin sql.NullTime `json:"last_login"` // last_login IsSuperuser bool `json:"is_superuser"` // is_superuser Username sql.NullString `json:"username"` // username FirstName sql.NullString `json:"first_name"` // first_name LastName sql.NullString `json:"last_name"` // last_name Email sql.NullString `json:"email"` // email IsStaff bool `json:"is_staff"` // is_staff IsActive bool `json:"is_active"` // is_active DateJoined time.Time `json:"date_joined"` // date_joined // contains filtered or unexported fields }
AuthUser represents a row from 'django.auth_user'.
func AuthUserByID ¶
AuthUserByID retrieves a row from 'django.auth_user' as a AuthUser.
Generated from index 'auth_user_id_idx'.
func AuthUserByUsername ¶
AuthUserByUsername retrieves a row from 'django.auth_user' as a AuthUser.
Generated from index 'auth_user_username_idx'.
func (*AuthUser) Deleted ¶
Deleted returns true when the AuthUser has been marked for deletion from the database.
type AuthUserGroup ¶
type AuthUserGroup struct { ID int64 `json:"id"` // id UserID int64 `json:"user_id"` // user_id GroupID int64 `json:"group_id"` // group_id // contains filtered or unexported fields }
AuthUserGroup represents a row from 'django.auth_user_groups'.
func AuthUserGroupByID ¶
AuthUserGroupByID retrieves a row from 'django.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_groups_id_idx'.
func AuthUserGroupByUserIDGroupID ¶
func AuthUserGroupByUserIDGroupID(ctx context.Context, db DB, userID, groupID int64) (*AuthUserGroup, error)
AuthUserGroupByUserIDGroupID retrieves a row from 'django.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user_user_id_g_94350c0c_u'.
func AuthUserGroupsByGroupID ¶
AuthUserGroupsByGroupID retrieves a row from 'django.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user__group_id_97559544'.
func AuthUserGroupsByUserID ¶
AuthUserGroupsByUserID retrieves a row from 'django.auth_user_groups' as a AuthUserGroup.
Generated from index 'auth_user__user_id_6a12ed8b'.
func (*AuthUserGroup) AuthGroup ¶
AuthGroup returns the AuthGroup associated with the AuthUserGroup's (GroupID).
Generated from foreign key 'auth_user_group_id_97559544_f'.
func (*AuthUserGroup) AuthUser ¶
AuthUser returns the AuthUser associated with the AuthUserGroup's (UserID).
Generated from foreign key 'auth_user_user_id_6a12ed8b_f'.
func (*AuthUserGroup) Delete ¶
func (aug *AuthUserGroup) Delete(ctx context.Context, db DB) error
Delete deletes the AuthUserGroup from the database.
func (*AuthUserGroup) Deleted ¶
func (aug *AuthUserGroup) Deleted() bool
Deleted returns true when the AuthUserGroup has been marked for deletion from the database.
func (*AuthUserGroup) Exists ¶
func (aug *AuthUserGroup) Exists() bool
Exists returns true when the AuthUserGroup exists in the database.
func (*AuthUserGroup) Insert ¶
func (aug *AuthUserGroup) Insert(ctx context.Context, db DB) error
Insert inserts the AuthUserGroup to the database.
func (*AuthUserGroup) Save ¶
func (aug *AuthUserGroup) Save(ctx context.Context, db DB) error
Save saves the AuthUserGroup to the database.
type AuthUserUserPermission ¶
type AuthUserUserPermission struct { ID int64 `json:"id"` // id UserID int64 `json:"user_id"` // user_id PermissionID int64 `json:"permission_id"` // permission_id // contains filtered or unexported fields }
AuthUserUserPermission represents a row from 'django.auth_user_user_permissions'.
func AuthUserUserPermissionByID ¶
func AuthUserUserPermissionByID(ctx context.Context, db DB, id int64) (*AuthUserUserPermission, error)
AuthUserUserPermissionByID retrieves a row from 'django.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_permissions_id_idx'.
func AuthUserUserPermissionByUserIDPermissionID ¶
func AuthUserUserPermissionByUserIDPermissionID(ctx context.Context, db DB, userID, permissionID int64) (*AuthUserUserPermission, error)
AuthUserUserPermissionByUserIDPermissionID retrieves a row from 'django.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user_user_id_p_14a6b632_u'.
func AuthUserUserPermissionsByPermissionID ¶
func AuthUserUserPermissionsByPermissionID(ctx context.Context, db DB, permissionID int64) ([]*AuthUserUserPermission, error)
AuthUserUserPermissionsByPermissionID retrieves a row from 'django.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user__permission_1fbb5f2c'.
func AuthUserUserPermissionsByUserID ¶
func AuthUserUserPermissionsByUserID(ctx context.Context, db DB, userID int64) ([]*AuthUserUserPermission, error)
AuthUserUserPermissionsByUserID retrieves a row from 'django.auth_user_user_permissions' as a AuthUserUserPermission.
Generated from index 'auth_user__user_id_a95ead1b'.
func (*AuthUserUserPermission) AuthPermission ¶
func (auup *AuthUserUserPermission) AuthPermission(ctx context.Context, db DB) (*AuthPermission, error)
AuthPermission returns the AuthPermission associated with the AuthUserUserPermission's (PermissionID).
Generated from foreign key 'auth_user_permissio_1fbb5f2c_f'.
func (*AuthUserUserPermission) AuthUser ¶
AuthUser returns the AuthUser associated with the AuthUserUserPermission's (UserID).
Generated from foreign key 'auth_user_user_id_a95ead1b_f'.
func (*AuthUserUserPermission) Delete ¶
func (auup *AuthUserUserPermission) Delete(ctx context.Context, db DB) error
Delete deletes the AuthUserUserPermission from the database.
func (*AuthUserUserPermission) Deleted ¶
func (auup *AuthUserUserPermission) Deleted() bool
Deleted returns true when the AuthUserUserPermission has been marked for deletion from the database.
func (*AuthUserUserPermission) Exists ¶
func (auup *AuthUserUserPermission) Exists() bool
Exists returns true when the AuthUserUserPermission exists in the database.
func (*AuthUserUserPermission) Insert ¶
func (auup *AuthUserUserPermission) Insert(ctx context.Context, db DB) error
Insert inserts the AuthUserUserPermission to the database.
func (*AuthUserUserPermission) Save ¶
func (auup *AuthUserUserPermission) Save(ctx context.Context, db DB) error
Save saves the AuthUserUserPermission to the database.
type Author ¶
type Author struct { AuthorID int64 `json:"author_id"` // author_id Name sql.NullString `json:"name"` // name // contains filtered or unexported fields }
Author represents a row from 'django.authors'.
func AuthorByAuthorID ¶
AuthorByAuthorID retrieves a row from 'django.authors' as a Author.
Generated from index 'authors_author_id_idx'.
func (*Author) Deleted ¶
Deleted returns true when the Author has been marked for deletion from the database.
type Book ¶
type Book struct { BookID int64 `json:"book_id"` // book_id ISBN sql.NullString `json:"isbn"` // isbn BookType int64 `json:"book_type"` // book_type Title sql.NullString `json:"title"` // title Year int64 `json:"year"` // year Available time.Time `json:"available"` // available BooksAuthorIDFkey int64 `json:"books_author_id_fkey"` // books_author_id_fkey // contains filtered or unexported fields }
Book represents a row from 'django.books'.
func BookByBookID ¶
BookByBookID retrieves a row from 'django.books' as a Book.
Generated from index 'books_book_id_idx'.
func BooksByBooksAuthorIDFkey ¶
BooksByBooksAuthorIDFkey retrieves a row from 'django.books' as a Book.
Generated from index 'books_books_auth_73ac0c26'.
func (*Book) Author ¶
Author returns the Author associated with the Book's (BooksAuthorIDFkey).
Generated from foreign key 'books_books_aut_73ac0c26_f'.
func (*Book) Deleted ¶
Deleted returns true when the Book has been marked for deletion from the database.
type BooksTag ¶
type BooksTag struct { ID int64 `json:"id"` // id BookID int64 `json:"book_id"` // book_id TagID int64 `json:"tag_id"` // tag_id // contains filtered or unexported fields }
BooksTag represents a row from 'django.books_tags'.
func BooksTagByBookIDTagID ¶
BooksTagByBookIDTagID retrieves a row from 'django.books_tags' as a BooksTag.
Generated from index 'books_tag_book_id_t_29db9e39_u'.
func BooksTagByID ¶
BooksTagByID retrieves a row from 'django.books_tags' as a BooksTag.
Generated from index 'books_tags_id_idx'.
func BooksTagsByBookID ¶
BooksTagsByBookID retrieves a row from 'django.books_tags' as a BooksTag.
Generated from index 'books_tags_book_id_73d7d8e8'.
func BooksTagsByTagID ¶
BooksTagsByTagID retrieves a row from 'django.books_tags' as a BooksTag.
Generated from index 'books_tags_tag_id_8d70b40a'.
func (*BooksTag) Book ¶
Book returns the Book associated with the BooksTag's (BookID).
Generated from foreign key 'books_tag_book_id_73d7d8e8_f'.
func (*BooksTag) Deleted ¶
Deleted returns true when the BooksTag has been marked for deletion from the database.
func (*BooksTag) Tag ¶
Tag returns the Tag associated with the BooksTag's (TagID).
Generated from foreign key 'books_tag_tag_id_8d70b40a_f'.
type DB ¶
type DB interface { ExecContext(context.Context, string, ...interface{}) (sql.Result, error) QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) QueryRowContext(context.Context, string, ...interface{}) *sql.Row }
DB is the common interface for database operations that can be used with types from schema 'django'.
This works with both database/sql.DB and database/sql.Tx.
type DjangoAdminLog ¶
type DjangoAdminLog struct { ID int64 `json:"id"` // id ActionTime time.Time `json:"action_time"` // action_time ObjectID sql.NullString `json:"object_id"` // object_id ObjectRepr sql.NullString `json:"object_repr"` // object_repr ActionFlag int64 `json:"action_flag"` // action_flag ChangeMessage sql.NullString `json:"change_message"` // change_message ContentTypeID sql.NullInt64 `json:"content_type_id"` // content_type_id UserID int64 `json:"user_id"` // user_id // contains filtered or unexported fields }
DjangoAdminLog represents a row from 'django.django_admin_log'.
func DjangoAdminLogByContentTypeID ¶
func DjangoAdminLogByContentTypeID(ctx context.Context, db DB, contentTypeID sql.NullInt64) ([]*DjangoAdminLog, error)
DjangoAdminLogByContentTypeID retrieves a row from 'django.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_adm_content_ty_c4bce8eb'.
func DjangoAdminLogByID ¶
DjangoAdminLogByID retrieves a row from 'django.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_admin_log_id_idx'.
func DjangoAdminLogByUserID ¶
DjangoAdminLogByUserID retrieves a row from 'django.django_admin_log' as a DjangoAdminLog.
Generated from index 'django_adm_user_id_c564eba6'.
func (*DjangoAdminLog) AuthUser ¶
AuthUser returns the AuthUser associated with the DjangoAdminLog's (UserID).
Generated from foreign key 'django_ad_user_id_c564eba6_f'.
func (*DjangoAdminLog) Delete ¶
func (dal *DjangoAdminLog) Delete(ctx context.Context, db DB) error
Delete deletes the DjangoAdminLog from the database.
func (*DjangoAdminLog) Deleted ¶
func (dal *DjangoAdminLog) Deleted() bool
Deleted returns true when the DjangoAdminLog has been marked for deletion from the database.
func (*DjangoAdminLog) DjangoContentType ¶
func (dal *DjangoAdminLog) DjangoContentType(ctx context.Context, db DB) (*DjangoContentType, error)
DjangoContentType returns the DjangoContentType associated with the DjangoAdminLog's (ContentTypeID).
Generated from foreign key 'django_ad_content_t_c4bce8eb_f'.
func (*DjangoAdminLog) Exists ¶
func (dal *DjangoAdminLog) Exists() bool
Exists returns true when the DjangoAdminLog exists in the database.
func (*DjangoAdminLog) Insert ¶
func (dal *DjangoAdminLog) Insert(ctx context.Context, db DB) error
Insert inserts the DjangoAdminLog to the database.
func (*DjangoAdminLog) Save ¶
func (dal *DjangoAdminLog) Save(ctx context.Context, db DB) error
Save saves the DjangoAdminLog to the database.
type DjangoContentType ¶
type DjangoContentType struct { ID int64 `json:"id"` // id AppLabel sql.NullString `json:"app_label"` // app_label Model sql.NullString `json:"model"` // model // contains filtered or unexported fields }
DjangoContentType represents a row from 'django.django_content_type'.
func DjangoContentTypeByAppLabelModel ¶
func DjangoContentTypeByAppLabelModel(ctx context.Context, db DB, appLabel, model sql.NullString) (*DjangoContentType, error)
DjangoContentTypeByAppLabelModel retrieves a row from 'django.django_content_type' as a DjangoContentType.
Generated from index 'django_co_app_label_76bd3d3b_u'.
func DjangoContentTypeByID ¶
DjangoContentTypeByID retrieves a row from 'django.django_content_type' as a DjangoContentType.
Generated from index 'django_content_type_id_idx'.
func (*DjangoContentType) Delete ¶
func (dct *DjangoContentType) Delete(ctx context.Context, db DB) error
Delete deletes the DjangoContentType from the database.
func (*DjangoContentType) Deleted ¶
func (dct *DjangoContentType) Deleted() bool
Deleted returns true when the DjangoContentType has been marked for deletion from the database.
func (*DjangoContentType) Exists ¶
func (dct *DjangoContentType) Exists() bool
Exists returns true when the DjangoContentType exists in the database.
func (*DjangoContentType) Insert ¶
func (dct *DjangoContentType) Insert(ctx context.Context, db DB) error
Insert inserts the DjangoContentType to the database.
func (*DjangoContentType) Save ¶
func (dct *DjangoContentType) Save(ctx context.Context, db DB) error
Save saves the DjangoContentType to the database.
type DjangoMigration ¶
type DjangoMigration struct { ID int64 `json:"id"` // id App sql.NullString `json:"app"` // app Name sql.NullString `json:"name"` // name Applied time.Time `json:"applied"` // applied // contains filtered or unexported fields }
DjangoMigration represents a row from 'django.django_migrations'.
func DjangoMigrationByID ¶
DjangoMigrationByID retrieves a row from 'django.django_migrations' as a DjangoMigration.
Generated from index 'django_migrations_id_idx'.
func (*DjangoMigration) Delete ¶
func (dm *DjangoMigration) Delete(ctx context.Context, db DB) error
Delete deletes the DjangoMigration from the database.
func (*DjangoMigration) Deleted ¶
func (dm *DjangoMigration) Deleted() bool
Deleted returns true when the DjangoMigration has been marked for deletion from the database.
func (*DjangoMigration) Exists ¶
func (dm *DjangoMigration) Exists() bool
Exists returns true when the DjangoMigration exists in the database.
func (*DjangoMigration) Insert ¶
func (dm *DjangoMigration) Insert(ctx context.Context, db DB) error
Insert inserts the DjangoMigration to the database.
func (*DjangoMigration) Save ¶
func (dm *DjangoMigration) Save(ctx context.Context, db DB) error
Save saves the DjangoMigration to the database.
type DjangoSession ¶
type DjangoSession struct { SessionKey string `json:"session_key"` // session_key SessionData sql.NullString `json:"session_data"` // session_data ExpireDate time.Time `json:"expire_date"` // expire_date // contains filtered or unexported fields }
DjangoSession represents a row from 'django.django_session'.
func DjangoSessionByExpireDate ¶
func DjangoSessionByExpireDate(ctx context.Context, db DB, expireDate time.Time) ([]*DjangoSession, error)
DjangoSessionByExpireDate retrieves a row from 'django.django_session' as a DjangoSession.
Generated from index 'django_ses_expire_dat_a5c62663'.
func DjangoSessionBySessionKey ¶
func DjangoSessionBySessionKey(ctx context.Context, db DB, sessionKey string) (*DjangoSession, error)
DjangoSessionBySessionKey retrieves a row from 'django.django_session' as a DjangoSession.
Generated from index 'django_session_session_key_idx'.
func (*DjangoSession) Delete ¶
func (ds *DjangoSession) Delete(ctx context.Context, db DB) error
Delete deletes the DjangoSession from the database.
func (*DjangoSession) Deleted ¶
func (ds *DjangoSession) Deleted() bool
Deleted returns true when the DjangoSession has been marked for deletion from the database.
func (*DjangoSession) Exists ¶
func (ds *DjangoSession) Exists() bool
Exists returns true when the DjangoSession exists in the database.
func (*DjangoSession) Insert ¶
func (ds *DjangoSession) Insert(ctx context.Context, db DB) error
Insert inserts the DjangoSession to the database.
func (*DjangoSession) Save ¶
func (ds *DjangoSession) Save(ctx context.Context, db DB) error
Save saves the DjangoSession to the database.
type ErrInsertFailed ¶
type ErrInsertFailed struct {
Err error
}
ErrInsertFailed is the insert failed error.
func (*ErrInsertFailed) Error ¶
func (err *ErrInsertFailed) Error() string
Error satisfies the error interface.
func (*ErrInsertFailed) Unwrap ¶
func (err *ErrInsertFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type ErrUpdateFailed ¶
type ErrUpdateFailed struct {
Err error
}
ErrUpdateFailed is the update failed error.
func (*ErrUpdateFailed) Error ¶
func (err *ErrUpdateFailed) Error() string
Error satisfies the error interface.
func (*ErrUpdateFailed) Unwrap ¶
func (err *ErrUpdateFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type ErrUpsertFailed ¶
type ErrUpsertFailed struct {
Err error
}
ErrUpsertFailed is the upsert failed error.
func (*ErrUpsertFailed) Error ¶
func (err *ErrUpsertFailed) Error() string
Error satisfies the error interface.
func (*ErrUpsertFailed) Unwrap ¶
func (err *ErrUpsertFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type Error ¶
type Error string
Error is an error.
const ( // ErrAlreadyExists is the already exists error. ErrAlreadyExists Error = "already exists" // ErrDoesNotExist is the does not exist error. ErrDoesNotExist Error = "does not exist" // ErrMarkedForDeletion is the marked for deletion error. ErrMarkedForDeletion Error = "marked for deletion" )
Error values.
type Tag ¶
type Tag struct { TagID int64 `json:"tag_id"` // tag_id Tag sql.NullString `json:"tag"` // tag // contains filtered or unexported fields }
Tag represents a row from 'django.tags'.
func TagByTagID ¶
TagByTagID retrieves a row from 'django.tags' as a Tag.
Generated from index 'tags_tag_id_idx'.
func (*Tag) Deleted ¶
Deleted returns true when the Tag has been marked for deletion from the database.