database

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-2-Clause Imports: 8 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 interface{}, 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 interface{}, model interface{}, args ...interface{}) 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 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 interface{}, 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 interface{}, model interface{}, args ...interface{}) 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 interface{}, 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 interface{}, model interface{}, args ...interface{}) 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