zdbconnector

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBTypeClickhouse = "clickhouse"
	DBTypePostgres   = "postgres"
)

Variables

Functions

This section is empty.

Types

type ClickHouseConnector

type ClickHouseConnector struct{}

func (*ClickHouseConnector) Connect

func (c *ClickHouseConnector) Connect(config *zdbconfig.Config) (*gorm.DB, error)

func (*ClickHouseConnector) VerifyConnection

func (c *ClickHouseConnector) VerifyConnection(db *gorm.DB) error

type DBConnector

type DBConnector interface {
	Connect(config *zdbconfig.Config) (*gorm.DB, error)
	VerifyConnection(db *gorm.DB) error
}

type PostgresConnector added in v0.6.0

type PostgresConnector struct{}

func (*PostgresConnector) Connect added in v0.6.0

func (c *PostgresConnector) Connect(config *zdbconfig.Config) (*gorm.DB, error)

func (*PostgresConnector) VerifyConnection added in v0.6.0

func (c *PostgresConnector) VerifyConnection(db *gorm.DB) error

Jump to

Keyboard shortcuts

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