Documentation ¶
Overview ¶
Package pg contains generated code for schema 'public'.
Index ¶
- type DefaultSessionDatumQ
- func (q DefaultSessionDatumQ) DefaultSessionDatumByID(id int64, isForUpdate bool) (*data.DefaultSessionDatum, error)
- func (q DefaultSessionDatumQ) DefaultSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.DefaultSessionDatum, error)
- func (q DefaultSessionDatumQ) Delete(dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) DeleteCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) Insert(dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) InsertCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) Update(dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) UpdateCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) Upsert(dsd *data.DefaultSessionDatum) error
- func (q DefaultSessionDatumQ) UpsertCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
- type GorpMigrationQ
- func (q GorpMigrationQ) Delete(gm *data.GorpMigration) error
- func (q GorpMigrationQ) DeleteCtx(ctx context.Context, gm *data.GorpMigration) error
- func (q GorpMigrationQ) GorpMigrationByID(id string, isForUpdate bool) (*data.GorpMigration, error)
- func (q GorpMigrationQ) GorpMigrationByIDCtx(ctx context.Context, id string, isForUpdate bool) (*data.GorpMigration, error)
- func (q GorpMigrationQ) Insert(gm *data.GorpMigration) error
- func (q GorpMigrationQ) InsertCtx(ctx context.Context, gm *data.GorpMigration) error
- func (q GorpMigrationQ) Update(gm *data.GorpMigration) error
- func (q GorpMigrationQ) UpdateCtx(ctx context.Context, gm *data.GorpMigration) error
- func (q GorpMigrationQ) Upsert(gm *data.GorpMigration) error
- func (q GorpMigrationQ) UpsertCtx(ctx context.Context, gm *data.GorpMigration) error
- type KeygenSessionDatumQ
- func (q KeygenSessionDatumQ) Delete(ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) DeleteCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) Insert(ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) InsertCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) KeygenSessionDatumByID(id int64, isForUpdate bool) (*data.KeygenSessionDatum, error)
- func (q KeygenSessionDatumQ) KeygenSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.KeygenSessionDatum, error)
- func (q KeygenSessionDatumQ) Update(ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) UpdateCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) Upsert(ksd *data.KeygenSessionDatum) error
- func (q KeygenSessionDatumQ) UpsertCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
- type ReshareSessionDatumQ
- func (q ReshareSessionDatumQ) Delete(rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) DeleteCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) Insert(rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) InsertCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) ReshareSessionDatumByID(id int64, isForUpdate bool) (*data.ReshareSessionDatum, error)
- func (q ReshareSessionDatumQ) ReshareSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.ReshareSessionDatum, error)
- func (q ReshareSessionDatumQ) Update(rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) UpdateCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) Upsert(rsd *data.ReshareSessionDatum) error
- func (q ReshareSessionDatumQ) UpsertCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
- type Storage
- func (s *Storage) Clone() *Storage
- func (s *Storage) DB() *pgdb.DB
- func (s Storage) DefaultSessionDatumQ() *DefaultSessionDatumQ
- func (s Storage) GorpMigrationQ() *GorpMigrationQ
- func (s Storage) KeygenSessionDatumQ() *KeygenSessionDatumQ
- func (s Storage) ReshareSessionDatumQ() *ReshareSessionDatumQ
- func (s *Storage) Transaction(tx func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSessionDatumQ ¶
type DefaultSessionDatumQ struct {
// contains filtered or unexported fields
}
func NewDefaultSessionDatumQ ¶
func NewDefaultSessionDatumQ(db *pgdb.DB) *DefaultSessionDatumQ
NewDefaultSessionDatumQ - creates new instance
func (DefaultSessionDatumQ) DefaultSessionDatumByID ¶
func (q DefaultSessionDatumQ) DefaultSessionDatumByID(id int64, isForUpdate bool) (*data.DefaultSessionDatum, error)
DefaultSessionDatumByID retrieves a row from 'public.default_session_data' as a DefaultSessionDatum.
Generated from index 'default_session_data_pkey'.
func (DefaultSessionDatumQ) DefaultSessionDatumByIDCtx ¶
func (q DefaultSessionDatumQ) DefaultSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.DefaultSessionDatum, error)
DefaultSessionDatumByIDCtx retrieves a row from 'public.default_session_data' as a DefaultSessionDatum.
Generated from index 'default_session_data_pkey'.
func (DefaultSessionDatumQ) Delete ¶
func (q DefaultSessionDatumQ) Delete(dsd *data.DefaultSessionDatum) error
Delete deletes the DefaultSessionDatum from the database.
func (DefaultSessionDatumQ) DeleteCtx ¶
func (q DefaultSessionDatumQ) DeleteCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
DeleteCtx deletes the DefaultSessionDatum from the database.
func (DefaultSessionDatumQ) Insert ¶
func (q DefaultSessionDatumQ) Insert(dsd *data.DefaultSessionDatum) error
Insert insert a DefaultSessionDatum to the database.
func (DefaultSessionDatumQ) InsertCtx ¶
func (q DefaultSessionDatumQ) InsertCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
InsertCtx inserts a DefaultSessionDatum to the database.
func (DefaultSessionDatumQ) Update ¶
func (q DefaultSessionDatumQ) Update(dsd *data.DefaultSessionDatum) error
Update updates a DefaultSessionDatum in the database.
func (DefaultSessionDatumQ) UpdateCtx ¶
func (q DefaultSessionDatumQ) UpdateCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
UpdateCtx updates a DefaultSessionDatum in the database.
func (DefaultSessionDatumQ) Upsert ¶
func (q DefaultSessionDatumQ) Upsert(dsd *data.DefaultSessionDatum) error
Upsert performs an upsert for DefaultSessionDatum.
func (DefaultSessionDatumQ) UpsertCtx ¶
func (q DefaultSessionDatumQ) UpsertCtx(ctx context.Context, dsd *data.DefaultSessionDatum) error
UpsertCtx performs an upsert for DefaultSessionDatum.
type GorpMigrationQ ¶
type GorpMigrationQ struct {
// contains filtered or unexported fields
}
func NewGorpMigrationQ ¶
func NewGorpMigrationQ(db *pgdb.DB) *GorpMigrationQ
NewGorpMigrationQ - creates new instance
func (GorpMigrationQ) Delete ¶
func (q GorpMigrationQ) Delete(gm *data.GorpMigration) error
Delete deletes the GorpMigration from the database.
func (GorpMigrationQ) DeleteCtx ¶
func (q GorpMigrationQ) DeleteCtx(ctx context.Context, gm *data.GorpMigration) error
DeleteCtx deletes the GorpMigration from the database.
func (GorpMigrationQ) GorpMigrationByID ¶
func (q GorpMigrationQ) GorpMigrationByID(id string, isForUpdate bool) (*data.GorpMigration, error)
GorpMigrationByID retrieves a row from 'public.gorp_migrations' as a GorpMigration.
Generated from index 'gorp_migrations_pkey'.
func (GorpMigrationQ) GorpMigrationByIDCtx ¶
func (q GorpMigrationQ) GorpMigrationByIDCtx(ctx context.Context, id string, isForUpdate bool) (*data.GorpMigration, error)
GorpMigrationByIDCtx retrieves a row from 'public.gorp_migrations' as a GorpMigration.
Generated from index 'gorp_migrations_pkey'.
func (GorpMigrationQ) Insert ¶
func (q GorpMigrationQ) Insert(gm *data.GorpMigration) error
Insert insert a GorpMigration to the database.
func (GorpMigrationQ) InsertCtx ¶
func (q GorpMigrationQ) InsertCtx(ctx context.Context, gm *data.GorpMigration) error
InsertCtx inserts a GorpMigration to the database.
func (GorpMigrationQ) Update ¶
func (q GorpMigrationQ) Update(gm *data.GorpMigration) error
Update updates a GorpMigration in the database.
func (GorpMigrationQ) UpdateCtx ¶
func (q GorpMigrationQ) UpdateCtx(ctx context.Context, gm *data.GorpMigration) error
UpdateCtx updates a GorpMigration in the database.
func (GorpMigrationQ) Upsert ¶
func (q GorpMigrationQ) Upsert(gm *data.GorpMigration) error
Upsert performs an upsert for GorpMigration.
func (GorpMigrationQ) UpsertCtx ¶
func (q GorpMigrationQ) UpsertCtx(ctx context.Context, gm *data.GorpMigration) error
UpsertCtx performs an upsert for GorpMigration.
type KeygenSessionDatumQ ¶
type KeygenSessionDatumQ struct {
// contains filtered or unexported fields
}
func NewKeygenSessionDatumQ ¶
func NewKeygenSessionDatumQ(db *pgdb.DB) *KeygenSessionDatumQ
NewKeygenSessionDatumQ - creates new instance
func (KeygenSessionDatumQ) Delete ¶
func (q KeygenSessionDatumQ) Delete(ksd *data.KeygenSessionDatum) error
Delete deletes the KeygenSessionDatum from the database.
func (KeygenSessionDatumQ) DeleteCtx ¶
func (q KeygenSessionDatumQ) DeleteCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
DeleteCtx deletes the KeygenSessionDatum from the database.
func (KeygenSessionDatumQ) Insert ¶
func (q KeygenSessionDatumQ) Insert(ksd *data.KeygenSessionDatum) error
Insert insert a KeygenSessionDatum to the database.
func (KeygenSessionDatumQ) InsertCtx ¶
func (q KeygenSessionDatumQ) InsertCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
InsertCtx inserts a KeygenSessionDatum to the database.
func (KeygenSessionDatumQ) KeygenSessionDatumByID ¶
func (q KeygenSessionDatumQ) KeygenSessionDatumByID(id int64, isForUpdate bool) (*data.KeygenSessionDatum, error)
KeygenSessionDatumByID retrieves a row from 'public.keygen_session_data' as a KeygenSessionDatum.
Generated from index 'keygen_session_data_pkey'.
func (KeygenSessionDatumQ) KeygenSessionDatumByIDCtx ¶
func (q KeygenSessionDatumQ) KeygenSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.KeygenSessionDatum, error)
KeygenSessionDatumByIDCtx retrieves a row from 'public.keygen_session_data' as a KeygenSessionDatum.
Generated from index 'keygen_session_data_pkey'.
func (KeygenSessionDatumQ) Update ¶
func (q KeygenSessionDatumQ) Update(ksd *data.KeygenSessionDatum) error
Update updates a KeygenSessionDatum in the database.
func (KeygenSessionDatumQ) UpdateCtx ¶
func (q KeygenSessionDatumQ) UpdateCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
UpdateCtx updates a KeygenSessionDatum in the database.
func (KeygenSessionDatumQ) Upsert ¶
func (q KeygenSessionDatumQ) Upsert(ksd *data.KeygenSessionDatum) error
Upsert performs an upsert for KeygenSessionDatum.
func (KeygenSessionDatumQ) UpsertCtx ¶
func (q KeygenSessionDatumQ) UpsertCtx(ctx context.Context, ksd *data.KeygenSessionDatum) error
UpsertCtx performs an upsert for KeygenSessionDatum.
type ReshareSessionDatumQ ¶
type ReshareSessionDatumQ struct {
// contains filtered or unexported fields
}
func NewReshareSessionDatumQ ¶
func NewReshareSessionDatumQ(db *pgdb.DB) *ReshareSessionDatumQ
NewReshareSessionDatumQ - creates new instance
func (ReshareSessionDatumQ) Delete ¶
func (q ReshareSessionDatumQ) Delete(rsd *data.ReshareSessionDatum) error
Delete deletes the ReshareSessionDatum from the database.
func (ReshareSessionDatumQ) DeleteCtx ¶
func (q ReshareSessionDatumQ) DeleteCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
DeleteCtx deletes the ReshareSessionDatum from the database.
func (ReshareSessionDatumQ) Insert ¶
func (q ReshareSessionDatumQ) Insert(rsd *data.ReshareSessionDatum) error
Insert insert a ReshareSessionDatum to the database.
func (ReshareSessionDatumQ) InsertCtx ¶
func (q ReshareSessionDatumQ) InsertCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
InsertCtx inserts a ReshareSessionDatum to the database.
func (ReshareSessionDatumQ) ReshareSessionDatumByID ¶
func (q ReshareSessionDatumQ) ReshareSessionDatumByID(id int64, isForUpdate bool) (*data.ReshareSessionDatum, error)
ReshareSessionDatumByID retrieves a row from 'public.reshare_session_data' as a ReshareSessionDatum.
Generated from index 'reshare_session_data_pkey'.
func (ReshareSessionDatumQ) ReshareSessionDatumByIDCtx ¶
func (q ReshareSessionDatumQ) ReshareSessionDatumByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.ReshareSessionDatum, error)
ReshareSessionDatumByIDCtx retrieves a row from 'public.reshare_session_data' as a ReshareSessionDatum.
Generated from index 'reshare_session_data_pkey'.
func (ReshareSessionDatumQ) Update ¶
func (q ReshareSessionDatumQ) Update(rsd *data.ReshareSessionDatum) error
Update updates a ReshareSessionDatum in the database.
func (ReshareSessionDatumQ) UpdateCtx ¶
func (q ReshareSessionDatumQ) UpdateCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
UpdateCtx updates a ReshareSessionDatum in the database.
func (ReshareSessionDatumQ) Upsert ¶
func (q ReshareSessionDatumQ) Upsert(rsd *data.ReshareSessionDatum) error
Upsert performs an upsert for ReshareSessionDatum.
func (ReshareSessionDatumQ) UpsertCtx ¶
func (q ReshareSessionDatumQ) UpsertCtx(ctx context.Context, rsd *data.ReshareSessionDatum) error
UpsertCtx performs an upsert for ReshareSessionDatum.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is the helper struct for database operations
func (Storage) DefaultSessionDatumQ ¶
func (s Storage) DefaultSessionDatumQ() *DefaultSessionDatumQ
DefaultSessionDatumQ - creates new instance of DefaultSessionDatumQ
func (Storage) GorpMigrationQ ¶
func (s Storage) GorpMigrationQ() *GorpMigrationQ
GorpMigrationQ - creates new instance of GorpMigrationQ
func (Storage) KeygenSessionDatumQ ¶
func (s Storage) KeygenSessionDatumQ() *KeygenSessionDatumQ
KeygenSessionDatumQ - creates new instance of KeygenSessionDatumQ
func (Storage) ReshareSessionDatumQ ¶
func (s Storage) ReshareSessionDatumQ() *ReshareSessionDatumQ
ReshareSessionDatumQ - creates new instance of ReshareSessionDatumQ
func (*Storage) Transaction ¶
Transaction begins a transaction on repo.