Documentation
¶
Index ¶
- func GetSlice(db *Database, query string) (any, error)
- func PrepareSliceQuery(queryTemplate, sliceTemplate string, slice []any, args ...any) (string, []any, error)
- type Database
- type Filter
- type FilterConfig
- type FilterParameter
- type Session
- func (s *Session) Close() error
- func (s *Session) Commit() error
- func (s *Session) Exec(query string, args ...any) (int64, error)
- func (s *Session) InsertRow(query string, args ...any) (int64, error)
- func (s *Session) Query(query string, args ...any) (*sql.Rows, error)
- func (s *Session) QueryRow(query string, args ...any) (*sql.Row, error)
- func (s *Session) Rollback() error
- func (s *Session) SelectSet(query string, args ...any) (*set.Set[string], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
ConnectionString string `yaml:"connection_string,omitempty" json:"connection_string,omitempty"`
}
type FilterConfig ¶
type FilterConfig struct {
Join string
Parameters map[string]*FilterParameter
}
type FilterParameter ¶
Click to show internal directories.
Click to hide internal directories.