Documentation ¶
Index ¶
- type DBTX
- type ListTodoByUserIDRow
- type Queries
- func (q *Queries) FindUserByID(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) ListTodoByUserID(ctx context.Context, userID uuid.UUID) ([]ListTodoByUserIDRow, error)
- func (q *Queries) ListTodos(ctx context.Context) ([]Todo, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SchemaMigration
- type Todo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListTodoByUserIDRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) FindUserByID ¶
func (*Queries) ListTodoByUserID ¶
type SchemaMigration ¶
type SchemaMigration struct {
Version string
}
type Todo ¶
type Todo struct { ID uuid.UUID CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Title string Completed bool UserID uuid.UUID }
type User ¶
type User struct { ID uuid.UUID Name string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.