Documentation ¶
Index ¶
- func Conn() *sqlx.DB
- func Connect(opts *ConnOpts) error
- type ConnOpts
- type PostgresStorage
- func (pg *PostgresStorage) Add(ti *todo.TaskItem) error
- func (pg *PostgresStorage) Bulk(op todo.BulkOp) (err error)
- func (pg *PostgresStorage) Init() error
- func (pg *PostgresStorage) Name() string
- func (pg *PostgresStorage) Remove(id int) error
- func (pg *PostgresStorage) Retrieve(id int) (*todo.TaskItem, error)
- func (pg *PostgresStorage) RetrieveAll(offset, limit int) ([]*todo.TaskItem, error)
- func (pg *PostgresStorage) Update(item *todo.TaskItem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresStorage ¶
type PostgresStorage struct { }
PostgresStorage -
func (*PostgresStorage) Retrieve ¶
func (pg *PostgresStorage) Retrieve(id int) (*todo.TaskItem, error)
Retrieve -
func (*PostgresStorage) RetrieveAll ¶
func (pg *PostgresStorage) RetrieveAll(offset, limit int) ( []*todo.TaskItem, error)
RetrieveAll -
Click to show internal directories.
Click to hide internal directories.