Documentation ¶
Index ¶
- type CreateNoteParams
- type CreateNoteRow
- type CreateSpaceParams
- type CreateSpaceRow
- type CreateUserParams
- type CreateUserRow
- type DBTX
- type FindAllNotesBySpaceIDAndStatusParams
- type FindAllNotesBySpaceIDParams
- type FindAllNotesByStatusParams
- type FindAllNotesParams
- type FindAllSpacesByUserIDRow
- type Note
- type NullStatus
- type Queries
- func (q *Queries) AddToken(ctx context.Context, token string) error
- func (q *Queries) CreateNote(ctx context.Context, arg CreateNoteParams) (*CreateNoteRow, error)
- func (q *Queries) CreateSpace(ctx context.Context, arg CreateSpaceParams) (*CreateSpaceRow, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (*CreateUserRow, error)
- func (q *Queries) DeleteNote(ctx context.Context, id int32) error
- func (q *Queries) DeleteSpace(ctx context.Context, id int32) error
- func (q *Queries) DeleteToken(ctx context.Context, token string) error
- func (q *Queries) DeleteUser(ctx context.Context, id int32) error
- func (q *Queries) FindAllNotes(ctx context.Context, arg FindAllNotesParams) ([]*Note, error)
- func (q *Queries) FindAllNotesBySpaceID(ctx context.Context, arg FindAllNotesBySpaceIDParams) ([]*Note, error)
- func (q *Queries) FindAllNotesBySpaceIDAndStatus(ctx context.Context, arg FindAllNotesBySpaceIDAndStatusParams) ([]*Note, error)
- func (q *Queries) FindAllNotesByStatus(ctx context.Context, arg FindAllNotesByStatusParams) ([]*Note, error)
- func (q *Queries) FindAllSpacesByUserID(ctx context.Context, userID int32) ([]*FindAllSpacesByUserIDRow, error)
- func (q *Queries) FindNoteByID(ctx context.Context, id int32) (*Note, error)
- func (q *Queries) FindSpaceByID(ctx context.Context, id int32) (*Space, error)
- func (q *Queries) FindToken(ctx context.Context, token string) (string, error)
- func (q *Queries) FindUserByEmail(ctx context.Context, email string) (*User, error)
- func (q *Queries) FindUserByID(ctx context.Context, id int32) (*User, error)
- func (q *Queries) FindUserByUsername(ctx context.Context, username string) (*User, error)
- func (q *Queries) UpdateEmail(ctx context.Context, arg UpdateEmailParams) (*UpdateEmailRow, error)
- func (q *Queries) UpdateNote(ctx context.Context, arg UpdateNoteParams) (*UpdateNoteRow, error)
- func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
- func (q *Queries) UpdateSpace(ctx context.Context, arg UpdateSpaceParams) (*UpdateSpaceRow, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (*UpdateUserRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Space
- type Status
- type UpdateEmailParams
- type UpdateEmailRow
- type UpdateNoteParams
- type UpdateNoteRow
- type UpdatePasswordParams
- type UpdateSpaceParams
- type UpdateSpaceRow
- type UpdateUserParams
- type UpdateUserRow
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNoteParams ¶
type CreateNoteRow ¶
type CreateSpaceParams ¶
type CreateSpaceRow ¶
type CreateUserParams ¶
type CreateUserRow ¶
type FindAllNotesParams ¶
type NullStatus ¶
type NullStatus struct { Status Status `json:"status"` Valid bool `json:"valid"` // Valid is true if Status is not NULL }
func (*NullStatus) Scan ¶
func (ns *NullStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateNote ¶
func (q *Queries) CreateNote(ctx context.Context, arg CreateNoteParams) (*CreateNoteRow, error)
func (*Queries) CreateSpace ¶
func (q *Queries) CreateSpace(ctx context.Context, arg CreateSpaceParams) (*CreateSpaceRow, error)
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (*CreateUserRow, error)
func (*Queries) DeleteToken ¶
func (*Queries) FindAllNotes ¶
func (*Queries) FindAllNotesBySpaceID ¶
func (*Queries) FindAllNotesBySpaceIDAndStatus ¶
func (*Queries) FindAllNotesByStatus ¶
func (*Queries) FindAllSpacesByUserID ¶
func (*Queries) FindNoteByID ¶
func (*Queries) FindSpaceByID ¶
func (*Queries) FindUserByEmail ¶
func (*Queries) FindUserByID ¶
func (*Queries) FindUserByUsername ¶
func (*Queries) UpdateEmail ¶
func (q *Queries) UpdateEmail(ctx context.Context, arg UpdateEmailParams) (*UpdateEmailRow, error)
func (*Queries) UpdateNote ¶
func (q *Queries) UpdateNote(ctx context.Context, arg UpdateNoteParams) (*UpdateNoteRow, error)
func (*Queries) UpdatePassword ¶
func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
func (*Queries) UpdateSpace ¶
func (q *Queries) UpdateSpace(ctx context.Context, arg UpdateSpaceParams) (*UpdateSpaceRow, error)
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (*UpdateUserRow, error)
type UpdateEmailParams ¶
type UpdateEmailRow ¶
type UpdateNoteParams ¶
type UpdateNoteRow ¶
type UpdatePasswordParams ¶
type UpdateSpaceParams ¶
type UpdateSpaceRow ¶
type UpdateUserParams ¶
type UpdateUserRow ¶
Click to show internal directories.
Click to hide internal directories.