Documentation
¶
Index ¶
- func MigrateDB(ctx context.Context, cfg *config.Migrate) error
- type Note
- type NoteIDName
- type Postgres
- func (s *Postgres) Close()
- func (s *Postgres) Delete(ctx context.Context, id string) error
- func (s *Postgres) DeleteProcessBefore(ctx context.Context, before time.Time) (int64, error)
- func (s *Postgres) Get(ctx context.Context, id string) (*service.Note, error)
- func (s *Postgres) GetNotes(ctx context.Context) ([]service.IDName, error)
- func (s *Postgres) GetProcess(ctx context.Context, q *query.Query) ([]service.Process, error)
- func (s *Postgres) GetWithPath(ctx context.Context, path string) (*service.Note, error)
- func (s *Postgres) Save(ctx context.Context, note *service.Note) error
- func (s *Postgres) SaveProcess(ctx context.Context, process *service.Process) error
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Note ¶
type Note struct {
ID string `db:"id" goqu:"skipupdate"`
Name string `db:"name"`
Content types.JSON[service.Content] `db:"content"`
Path string `db:"path"`
UpdatedBy types.Null[string] `db:"updated_by"`
CreatedAt types.Null[types.Time] `db:"created_at" goqu:"skipupdate"`
UpdatedAt types.Null[types.Time] `db:"updated_at"`
}
type NoteIDName ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) DeleteProcessBefore ¶ added in v0.2.2
func (*Postgres) GetProcess ¶ added in v0.2.0
func (*Postgres) GetWithPath ¶
Click to show internal directories.
Click to hide internal directories.