data

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package data contains generated code for schema 'public'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GorpMigration

type GorpMigration struct {
	ID        string       `db:"id"`         // id
	AppliedAt sql.NullTime `db:"applied_at"` // applied_at

}

type GorpMigrationQ

type GorpMigrationQ interface{}

type Int256

type Int256 struct {
	*big.Int
}

func (*Int256) Scan

func (b *Int256) Scan(value interface{}) error

Scan implements the Scanner interface for Uint256

func (Int256) Value

func (b Int256) Value() (driver.Value, error)

Value implements the Valuer interface for Uint256

type Storage

type Storage interface {
	TransactionQ() TransactionQ

	DB() *pgdb.DB
}

type StringSlice

type StringSlice []string

StringSlice is a slice of strings.

func (*StringSlice) Scan

func (ss *StringSlice) Scan(src interface{}) error

Scan satisfies the sql.Scanner interface for StringSlice.

func (StringSlice) Value

func (ss StringSlice) Value() (driver.Value, error)

Value satisfies the driver.Valuer interface for StringSlice.

type Transaction

type Transaction struct {
	ID   int64  `db:"id"`   // id
	Data []byte `db:"data"` // data

}

Transaction represents a row from 'public.transactions'.

type TransactionQ

type TransactionQ interface {
	InsertCtx(ctx context.Context, t *Transaction) error
	DeleteCtx(ctx context.Context, t *Transaction) error
	Select(ctx context.Context) ([]Transaction, error)
	SelectWithLimit(ctx context.Context, limit uint64) ([]Transaction, error)
}

Directories

Path Synopsis
Package pg contains generated code for schema 'public'.
Package pg contains generated code for schema 'public'.

Jump to

Keyboard shortcuts

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