environmentsql

package
v0.0.0-...-8bea463 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 InsertEnvironmentParams

type InsertEnvironmentParams struct {
	Name string
	Gcp  bool
}

type Querier

type Querier interface {
	DeleteAllEnvironments(ctx context.Context) error
	InsertEnvironment(ctx context.Context, arg InsertEnvironmentParams) error
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) DeleteAllEnvironments

func (q *Queries) DeleteAllEnvironments(ctx context.Context) error

func (*Queries) InsertEnvironment

func (q *Queries) InsertEnvironment(ctx context.Context, arg InsertEnvironmentParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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