database

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouse added in v0.0.5

type ClickHouse struct {
	Name     string
	Database string
	User     string
	Password string
	Hosts    string
	// contains filtered or unexported fields
}

func (*ClickHouse) Exec added in v0.0.5

func (t *ClickHouse) Exec(ctx context.Context, query string, args ...interface{}) error

func (*ClickHouse) GetDb added in v0.0.5

func (t *ClickHouse) GetDb() interface{}

func (*ClickHouse) Init added in v0.0.5

func (t *ClickHouse) Init(app interfaces.IService) error

func (*ClickHouse) Query added in v0.0.5

func (t *ClickHouse) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)

func (*ClickHouse) QueryRow added in v0.0.6

func (t *ClickHouse) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)

func (*ClickHouse) Stop added in v0.0.5

func (t *ClickHouse) Stop() error

func (*ClickHouse) String added in v0.0.5

func (t *ClickHouse) String() string

type PGSQLRows added in v0.0.6

type PGSQLRows struct {
	Rows pgx.Rows
}

func (*PGSQLRows) Close added in v0.0.6

func (t *PGSQLRows) Close() error

func (*PGSQLRows) Next added in v0.0.6

func (t *PGSQLRows) Next() bool

func (*PGSQLRows) Scan added in v0.0.6

func (t *PGSQLRows) Scan(dest ...any) error

type Postgres

type Postgres struct {
	Name     string
	Database string
	URI      string
	// contains filtered or unexported fields
}

func (*Postgres) Exec

func (t *Postgres) Exec(ctx context.Context, query string, args ...interface{}) error

func (*Postgres) GetDb

func (t *Postgres) GetDb() interface{}

func (*Postgres) Init

func (t *Postgres) Init(app interfaces.IService) error

func (*Postgres) Query added in v0.0.5

func (t *Postgres) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)

func (*Postgres) QueryRow added in v0.0.6

func (t *Postgres) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)

func (*Postgres) Stop

func (t *Postgres) Stop() error

func (*Postgres) String

func (t *Postgres) String() string

type Sqlite3

type Sqlite3 struct {
	Name     string
	Database string
	// contains filtered or unexported fields
}

func (*Sqlite3) Exec

func (t *Sqlite3) Exec(ctx context.Context, query string, args ...interface{}) error

func (*Sqlite3) GetDb

func (t *Sqlite3) GetDb() interface{}

func (*Sqlite3) Init

func (t *Sqlite3) Init(app interfaces.IService) error

func (*Sqlite3) Query added in v0.0.5

func (t *Sqlite3) Query(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRows, error)

func (*Sqlite3) QueryRow added in v0.0.6

func (t *Sqlite3) QueryRow(ctx context.Context, query string, args ...interface{}) (interfaces.SQLRow, error)

func (*Sqlite3) Stop

func (t *Sqlite3) Stop() error

func (*Sqlite3) String

func (t *Sqlite3) String() string

Jump to

Keyboard shortcuts

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