package models
import "github.com/go-arrower/arrower/setting/models"
Index ¶
- type DBTX
- type GetSettingsRow
- type Queries
- func New(db DBTX) *Queries
- func (q *Queries) DeleteSetting(ctx context.Context, key string) error
- func (q *Queries) GetSetting(ctx context.Context, key string) (string, error)
- func (q *Queries) GetSettings(ctx context.Context, compositeKeys []string) ([]GetSettingsRow, error)
- func (q *Queries) UpsertSetting(ctx context.Context, arg UpsertSettingParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpsertSettingParams
Types ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row }
type GetSettingsRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func New ¶
func (*Queries) DeleteSetting ¶
func (*Queries) GetSetting ¶
func (*Queries) GetSettings ¶
func (q *Queries) GetSettings(ctx context.Context, compositeKeys []string) ([]GetSettingsRow, error)
func (*Queries) UpsertSetting ¶
func (q *Queries) UpsertSetting(ctx context.Context, arg UpsertSettingParams) error
func (*Queries) WithTx ¶
type UpsertSettingParams ¶
Source Files ¶
- Version
- v0.0.0-20250311203644-ab26c1152cb4 (latest)
- Published
- Mar 11, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 week ago –
Tools for package owners.