db

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 AwsLambdaFunction

type AwsLambdaFunction struct {
	AccountID    string
	Region       string
	Arn          string
	Name         string
	Runtime      string
	LastModified sql.NullString
	Tags         string
}

type AwsLambdaFunctionRuntime

type AwsLambdaFunctionRuntime struct {
	Runtime     string
	Deprecation sql.NullString
	EndOfLife   sql.NullString
}

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 InsertLambdaFunctionParams

type InsertLambdaFunctionParams struct {
	AccountID    string
	Region       string
	Arn          string
	Name         string
	Runtime      string
	LastModified sql.NullString
	Tags         string
}

type InsertLambdaFunctionRuntimeParams

type InsertLambdaFunctionRuntimeParams struct {
	Runtime     string
	Deprecation sql.NullString
	EndOfLife   sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnonymiseLambdaFunctions

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

func (*Queries) InsertLambdaFunction

func (q *Queries) InsertLambdaFunction(ctx context.Context, arg InsertLambdaFunctionParams) error

func (*Queries) InsertLambdaFunctionRuntime

func (q *Queries) InsertLambdaFunctionRuntime(ctx context.Context, arg InsertLambdaFunctionRuntimeParams) error

func (*Queries) RetrieveAll

func (q *Queries) RetrieveAll(ctx context.Context) ([]AwsLambdaFunction, 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
	Runtime     string
	Deprecation sql.NullString
	EndOfLife   sql.NullString
}

Jump to

Keyboard shortcuts

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