pg

package
v1.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pg contains generated code for schema 'public'.

Index

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

Delete deletes the DefaultSessionDatum from the database.

func (DefaultSessionDatumQ) DeleteCtx

DeleteCtx deletes the DefaultSessionDatum from the database.

func (DefaultSessionDatumQ) Insert

Insert insert a DefaultSessionDatum to the database.

func (DefaultSessionDatumQ) InsertCtx

InsertCtx inserts a DefaultSessionDatum to the database.

func (DefaultSessionDatumQ) Update

Update updates a DefaultSessionDatum in the database.

func (DefaultSessionDatumQ) UpdateCtx

UpdateCtx updates a DefaultSessionDatum in the database.

func (DefaultSessionDatumQ) Upsert

Upsert performs an upsert for DefaultSessionDatum.

func (DefaultSessionDatumQ) UpsertCtx

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

Delete deletes the KeygenSessionDatum from the database.

func (KeygenSessionDatumQ) DeleteCtx

DeleteCtx deletes the KeygenSessionDatum from the database.

func (KeygenSessionDatumQ) Insert

Insert insert a KeygenSessionDatum to the database.

func (KeygenSessionDatumQ) InsertCtx

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

Update updates a KeygenSessionDatum in the database.

func (KeygenSessionDatumQ) UpdateCtx

UpdateCtx updates a KeygenSessionDatum in the database.

func (KeygenSessionDatumQ) Upsert

Upsert performs an upsert for KeygenSessionDatum.

func (KeygenSessionDatumQ) UpsertCtx

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

Delete deletes the ReshareSessionDatum from the database.

func (ReshareSessionDatumQ) DeleteCtx

DeleteCtx deletes the ReshareSessionDatum from the database.

func (ReshareSessionDatumQ) Insert

Insert insert a ReshareSessionDatum to the database.

func (ReshareSessionDatumQ) InsertCtx

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

Update updates a ReshareSessionDatum in the database.

func (ReshareSessionDatumQ) UpdateCtx

UpdateCtx updates a ReshareSessionDatum in the database.

func (ReshareSessionDatumQ) Upsert

Upsert performs an upsert for ReshareSessionDatum.

func (ReshareSessionDatumQ) UpsertCtx

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 New

func New(db *pgdb.DB) *Storage

New - returns new instance of storage

func (*Storage) Clone

func (s *Storage) Clone() *Storage

Clone - returns new storage with clone of db

func (*Storage) DB

func (s *Storage) DB() *pgdb.DB

DB - returns db used by Storage

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

func (s *Storage) Transaction(tx func() error) error

Transaction begins a transaction on repo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL