sql

package
v1.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudSQLClient

type CloudSQLClient interface {
	IsInitialized() bool
	DB() *pg.DB
	Close() error
}

CloudSQLClient defines db interface

func NewCloudSQLClient

func NewCloudSQLClient(options ConnectOptions) CloudSQLClient

NewCloudSQLClient crete new instance of CloudSQLClient

type ConnectOptions

type ConnectOptions struct {
	Host         string
	Socket       string
	Port         string
	User         string
	Password     string
	Database     string
	DebugQueries string
}

ConnectOptions contains parameters for connecting to the database

Jump to

Keyboard shortcuts

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