storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDataSource = errors.New("invalid data source")

ErrInvalidDataSource is returned when the data source is not supported.

Functions

func Connect

func Connect(ctx context.Context, cfg Config) (provider.Writer, error)

Connect creates a new connection to the database. It returns a provider Writer based on the given configuration.

Types

type Config

type Config struct {
	Driver          string
	DSN             string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
	Timeout         time.Duration
	SchemaName      string

	Bigquery struct {
		ProjectID string
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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