Documentation
¶
Index ¶
- func Connect(config Configuration) *sqlx.DB
- func NewSessionStore(db *sqlx.DB) session.SessionStore
- type Configuration
- type Findable
- func (repo Findable[ENTITY, FILTER]) Exists(id int) bool
- func (repo Findable[ENTITY, FILTER]) Find(filter FILTER, pag pagination.Pagination) (pagination.List[ENTITY], error)
- func (repo Findable[ENTITY, FILTER]) FindAll() ([]ENTITY, error)
- func (repo Findable[ENTITY, FILTER]) FindAllFiltered(filter FILTER) ([]ENTITY, error)
- func (repo Findable[ENTITY, FILTER]) FindFiltered(filter FILTER) (pagination.List[ENTITY], error)
- func (repo Findable[ENTITY, FILTER]) FindFirstPage() (pagination.List[ENTITY], error)
- func (repo Findable[ENTITY, FILTER]) FindOne(id int) (out ENTITY, err error)
- func (repo Findable[ENTITY, FILTER]) FindPaginated(pag pagination.Pagination) (pagination.List[ENTITY], error)
- type SQLDao
- type SQLSessionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(config Configuration) *sqlx.DB
func NewSessionStore ¶
func NewSessionStore(db *sqlx.DB) session.SessionStore
Types ¶
type Configuration ¶
type Findable ¶
func NewFindable ¶
func NewFindableDefault ¶
func (Findable[ENTITY, FILTER]) Find ¶
func (repo Findable[ENTITY, FILTER]) Find(filter FILTER, pag pagination.Pagination) (pagination.List[ENTITY], error)
func (Findable[ENTITY, FILTER]) FindAllFiltered ¶ added in v0.1.3
func (Findable[ENTITY, FILTER]) FindFiltered ¶ added in v0.1.3
func (repo Findable[ENTITY, FILTER]) FindFiltered(filter FILTER) (pagination.List[ENTITY], error)
func (Findable[ENTITY, FILTER]) FindFirstPage ¶ added in v0.1.3
func (repo Findable[ENTITY, FILTER]) FindFirstPage() (pagination.List[ENTITY], error)
func (Findable[ENTITY, FILTER]) FindPaginated ¶ added in v0.1.3
func (repo Findable[ENTITY, FILTER]) FindPaginated(pag pagination.Pagination) (pagination.List[ENTITY], error)
type SQLDao ¶
func (SQLDao) BeginOrFatal ¶
type SQLSessionStore ¶
type SQLSessionStore struct {
SQLDao
}
func (SQLSessionStore) Delete ¶
func (store SQLSessionStore) Delete(id session.Id)
func (SQLSessionStore) Save ¶
func (store SQLSessionStore) Save(entry session.Entry)
Click to show internal directories.
Click to hide internal directories.