Documentation
¶
Index ¶
- Constants
- type Book
- type BookCreateParams
- type BookUpdateByIdParams
- type ColumnCustomParams
- type DBTX
- type Queries
- func (q *Queries) BookCount(ctx context.Context, title string) (int64, error)
- func (q *Queries) BookCreate(ctx context.Context, arg BookCreateParams) error
- func (q *Queries) BookDeleteById(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) BookDetailById(ctx context.Context, id pgtype.UUID) (Book, error)
- func (q *Queries) BookGetAll(ctx context.Context, xtra ColumnCustomParams, title string) ([]Book, error)
- func (q *Queries) BookUpdateById(ctx context.Context, arg BookUpdateByIdParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
View Source
const ( BOOKS_ID = "id" BOOKS_TITLE = "title" BOOKS_YOP = "yop" BOOKS_AUTHOR = "author" BOOKS_ISBN = "isbn" BOOKS_PAGE = "page" BOOKS_CREATED_AT = "created_at" BOOKS_UPDATED_AT = "updated_at" BOOKS_DELETED_AT = "deleted_at" )
View Source
const ( ASC = "ASC" DESC = "DESC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { ID pgtype.UUID Title string Yop int16 Author string Isbn pgtype.Text Page pgtype.Int4 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz DeletedAt pgtype.Timestamptz }
type BookCreateParams ¶
type BookUpdateByIdParams ¶
type ColumnCustomParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) BookCreate ¶
func (q *Queries) BookCreate(ctx context.Context, arg BookCreateParams) error
func (*Queries) BookDeleteById ¶
func (*Queries) BookDetailById ¶
func (*Queries) BookGetAll ¶
func (*Queries) BookUpdateById ¶
func (q *Queries) BookUpdateById(ctx context.Context, arg BookUpdateByIdParams) error
Click to show internal directories.
Click to hide internal directories.