Documentation
¶
Index ¶
- Variables
- 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 ¶
View Source
var SchemaSQL string
Functions ¶
This section is empty.
Types ¶
type AddTagNoteParams ¶
type CreateNoteParams ¶
type CreatePrivateNoteParams ¶
type GetEncryptDataByIDRow ¶
type GetNoteByIDRow ¶
type GetPrivateNoteByIDRow ¶
type ListArchivedNotesRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddTagNote ¶
func (q *Queries) AddTagNote(ctx context.Context, arg AddTagNoteParams) error
func (*Queries) CreateNote ¶
func (*Queries) CreatePrivateNote ¶
func (*Queries) GetEncryptDataByID ¶
func (*Queries) GetNoteByID ¶
func (*Queries) GetPrivateNoteByID ¶
func (*Queries) GetTagIDByName ¶
func (*Queries) ListArchivedNotes ¶
func (q *Queries) ListArchivedNotes(ctx context.Context) ([]ListArchivedNotesRow, error)
func (*Queries) ListTagsByNoteID ¶
func (*Queries) PermanentDeleteNoteByID ¶
func (*Queries) RestoreNoteByID ¶
func (*Queries) SoftDeleteNoteByID ¶
func (*Queries) TogglePinNoteByID ¶
func (*Queries) UpdateNoteByID ¶
func (*Queries) UpdatePrivateNoteByID ¶
type SoftDeleteNoteByIDParams ¶
type SoftDeleteNoteByIDParams struct {
DeletedAt sql.NullString
ID int64
}
type UpdateNoteByIDParams ¶
Click to show internal directories.
Click to hide internal directories.