sql

package
v0.386.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 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 {
	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 GetOnlyEncryptionKeyRow

type GetOnlyEncryptionKeyRow struct {
	Key            []byte
	VerifyTimeline api.OptionalEncryptedTimelineColumn
	VerifyAsync    api.OptionalEncryptedAsyncColumn
}

type Querier

type Querier interface {
	CreateOnlyEncryptionKey(ctx context.Context, key []byte) error
	GetOnlyEncryptionKey(ctx context.Context) (GetOnlyEncryptionKeyRow, error)
	UpdateEncryptionVerification(ctx context.Context, verifyTimeline api.OptionalEncryptedTimelineColumn, verifyAsync api.OptionalEncryptedAsyncColumn) error
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateOnlyEncryptionKey

func (q *Queries) CreateOnlyEncryptionKey(ctx context.Context, key []byte) error

func (*Queries) GetOnlyEncryptionKey

func (q *Queries) GetOnlyEncryptionKey(ctx context.Context) (GetOnlyEncryptionKeyRow, error)

func (*Queries) UpdateEncryptionVerification

func (q *Queries) UpdateEncryptionVerification(ctx context.Context, verifyTimeline api.OptionalEncryptedTimelineColumn, verifyAsync api.OptionalEncryptedAsyncColumn) error

func (*Queries) WithTx

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

Jump to

Keyboard shortcuts

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