queries

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.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 CheckFidAppKeyExistsParams

type CheckFidAppKeyExistsParams struct {
	Fid    uint64
	AppKey annotations.Bytes
}

type CreateFidAppKeyParams

type CreateFidAppKeyParams struct {
	Fid    uint64
	AppKey annotations.Bytes
}

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 DeleteFidAppKeyParams

type DeleteFidAppKeyParams struct {
	Fid    uint64
	AppKey annotations.Bytes
}

type FidAppkey

type FidAppkey struct {
	Fid    uint64
	AppKey annotations.Bytes
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CheckFidAppKeyExists

func (q *Queries) CheckFidAppKeyExists(ctx context.Context, arg CheckFidAppKeyExistsParams) (bool, error)

func (*Queries) CountUsers

func (q *Queries) CountUsers(ctx context.Context) (int64, error)

func (*Queries) CreateFidAppKey

func (q *Queries) CreateFidAppKey(ctx context.Context, arg CreateFidAppKeyParams) (sql.Result, error)

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, fid uint64) (sql.Result, error)

func (*Queries) DeleteFidAppKey

func (q *Queries) DeleteFidAppKey(ctx context.Context, arg DeleteFidAppKeyParams) (sql.Result, error)

func (*Queries) DeleteUser

func (q *Queries) DeleteUser(ctx context.Context, fid uint64) (sql.Result, error)

func (*Queries) GetFidAppKeys

func (q *Queries) GetFidAppKeys(ctx context.Context, fid uint64) ([]annotations.Bytes, error)

func (*Queries) GetFidByAppKey

func (q *Queries) GetFidByAppKey(ctx context.Context, appKey annotations.Bytes) ([]uint64, error)

func (*Queries) GetUserByFID

func (q *Queries) GetUserByFID(ctx context.Context, fid uint64) (uint64, error)

func (*Queries) ListUsers

func (q *Queries) ListUsers(ctx context.Context) ([]uint64, error)

func (*Queries) WithTx

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

type User

type User struct {
	Fid uint64
}

Jump to

Keyboard shortcuts

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