db

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 AwsRdsDatabase

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

type AwsRdsDatabasesEngine

type AwsRdsDatabasesEngine 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 InsertDatabaseEngineParams

type InsertDatabaseEngineParams struct {
	Engine        string
	EngineVersion string
	Deprecation   string
}

type InsertDatabaseParams

type InsertDatabaseParams 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) AnonymiseRdsDatabases

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

func (*Queries) InsertDatabase

func (q *Queries) InsertDatabase(ctx context.Context, arg InsertDatabaseParams) error

func (*Queries) InsertDatabaseEngine

func (q *Queries) InsertDatabaseEngine(ctx context.Context, arg InsertDatabaseEngineParams) error

func (*Queries) RetrieveAll

func (q *Queries) RetrieveAll(ctx context.Context) ([]AwsRdsDatabase, 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