Documentation
¶
Index ¶
- type AddTagNoteParams
- type CreateNoteParams
- type CreatePrivateNoteParams
- type DBTX
- type GetEncryptDataByIDRow
- type GetNoteByIDRow
- type GetPrivateNoteByIDRow
- type ListArchivedNotesRow
- type Note
- type NoteTag
- type NotesFt
- type Queries
- func (q *Queries) AddTag(ctx context.Context, name string) error
- func (q *Queries) AddTagNote(ctx context.Context, arg AddTagNoteParams) error
- func (q *Queries) CreateNote(ctx context.Context, arg CreateNoteParams) (int64, error)
- func (q *Queries) CreatePrivateNote(ctx context.Context, arg CreatePrivateNoteParams) (int64, error)
- func (q *Queries) GetEncryptDataByID(ctx context.Context, id int64) (GetEncryptDataByIDRow, error)
- func (q *Queries) GetNoteByID(ctx context.Context, id int64) (GetNoteByIDRow, error)
- func (q *Queries) GetPrivateNoteByID(ctx context.Context, id int64) (GetPrivateNoteByIDRow, error)
- func (q *Queries) GetTagIDByName(ctx context.Context, name string) (int64, error)
- func (q *Queries) ListArchivedNotes(ctx context.Context) ([]ListArchivedNotesRow, error)
- func (q *Queries) ListTags(ctx context.Context) ([]string, error)
- func (q *Queries) ListTagsByNoteID(ctx context.Context, noteID int64) ([]string, error)
- func (q *Queries) PermanentDeleteNoteByID(ctx context.Context, id int64) (int64, error)
- func (q *Queries) RestoreNoteByID(ctx context.Context, id int64) (int64, error)
- func (q *Queries) SoftDeleteNoteByID(ctx context.Context, arg SoftDeleteNoteByIDParams) (int64, error)
- func (q *Queries) TogglePinNoteByID(ctx context.Context, id int64) (int64, error)
- func (q *Queries) UpdateNoteByID(ctx context.Context, arg UpdateNoteByIDParams) (int64, error)
- func (q *Queries) UpdatePrivateNoteByID(ctx context.Context, arg UpdatePrivateNoteByIDParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SoftDeleteNoteByIDParams
- type Tag
- type UpdateNoteByIDParams
- type UpdatePrivateNoteByIDParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTagNoteParams ¶ added in v1.4.1
type CreateNoteParams ¶ added in v1.4.1
type CreatePrivateNoteParams ¶ added in v1.4.1
type GetEncryptDataByIDRow ¶ added in v1.4.1
type GetNoteByIDRow ¶ added in v1.4.1
type GetPrivateNoteByIDRow ¶ added in v1.4.1
type ListArchivedNotesRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddTagNote ¶ added in v1.4.1
func (q *Queries) AddTagNote(ctx context.Context, arg AddTagNoteParams) error
func (*Queries) CreateNote ¶ added in v1.4.1
func (*Queries) CreatePrivateNote ¶ added in v1.4.1
func (*Queries) GetEncryptDataByID ¶ added in v1.4.1
func (*Queries) GetNoteByID ¶ added in v1.4.1
func (*Queries) GetPrivateNoteByID ¶ added in v1.4.1
func (*Queries) GetTagIDByName ¶ added in v1.4.1
func (*Queries) ListArchivedNotes ¶
func (q *Queries) ListArchivedNotes(ctx context.Context) ([]ListArchivedNotesRow, error)
func (*Queries) ListTagsByNoteID ¶
func (*Queries) PermanentDeleteNoteByID ¶ added in v1.4.1
func (*Queries) RestoreNoteByID ¶ added in v1.4.1
func (*Queries) SoftDeleteNoteByID ¶ added in v1.4.1
func (*Queries) TogglePinNoteByID ¶ added in v1.4.1
func (*Queries) UpdateNoteByID ¶ added in v1.4.1
func (*Queries) UpdatePrivateNoteByID ¶ added in v1.4.1
type SoftDeleteNoteByIDParams ¶ added in v1.4.1
type SoftDeleteNoteByIDParams struct {
DeletedAt sql.NullString
ID int64
}
type UpdateNoteByIDParams ¶ added in v1.4.1
Click to show internal directories.
Click to hide internal directories.