Documentation ¶
Index ¶
Constants ¶
View Source
const QueryGetAll = `` /* 126-byte string literal not displayed */
View Source
const QueryGetDetail = `
SELECT name, title, description
FROM publishers
WHERE id=$1;`
View Source
const QueryInsert = `
INSERT INTO
publishers(name, title, description)
VALUES($1, $2, $3)
RETURNING id;`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Repository ¶
type Repository interface { // insert a publisher Insert(context.Context, *models.Publisher) error // get publisher detail GetById(ctx context.Context, id uint64) (*models.Publisher, error) // search + pagination (no detail) GetAll(ctx context.Context, encryptedCursor, search string, limit int) ([]models.Publisher, string, error) }
Click to show internal directories.
Click to hide internal directories.