db

package
v0.67.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateTablesQuery string

Functions

This section is empty.

Types

type AwsElasticacheDatastore

type AwsElasticacheDatastore struct {
	AccountID     string
	Region        string
	Arn           string
	Name          string
	Engine        string
	EngineVersion string
	Tags          string
}

type AwsElasticacheDatastoreEngine

type AwsElasticacheDatastoreEngine struct {
	Engine        string
	EngineVersion string
	Deprecation   string
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type InsertDatastoreEngineParams

type InsertDatastoreEngineParams struct {
	Engine        string
	EngineVersion string
	Deprecation   string
}

type InsertDatastoreParams

type InsertDatastoreParams struct {
	AccountID     string
	Region        string
	Arn           string
	Name          string
	Engine        string
	EngineVersion string
	Tags          string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnonymiseElasticacheDatastores

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

func (*Queries) InsertDatastore

func (q *Queries) InsertDatastore(ctx context.Context, arg InsertDatastoreParams) error

func (*Queries) InsertDatastoreEngine

func (q *Queries) InsertDatastoreEngine(ctx context.Context, arg InsertDatastoreEngineParams) error

func (*Queries) RetrieveAll

func (q *Queries) RetrieveAll(ctx context.Context) ([]AwsElasticacheDatastore, error)

func (*Queries) RetrieveAllWithDeprecation added in v0.22.0

func (q *Queries) RetrieveAllWithDeprecation(ctx context.Context) ([]RetrieveAllWithDeprecationRow, error)

func (*Queries) WithTx

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

type RetrieveAllWithDeprecationRow added in v0.22.0

type RetrieveAllWithDeprecationRow struct {
	Arn           string
	Name          string
	Engine        string
	EngineVersion string
	Deprecation   string
}

Jump to

Keyboard shortcuts

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