sqldb

package
v0.0.0-...-367b6cc Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Key = "sqlDb"

Variables

View Source
var File_adapters_sql_db_sql_db_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	*sql.DB
	// contains filtered or unexported fields
}

func New

func New() *Adapter

func (*Adapter) Attach

func (a *Adapter) Attach()

func (*Adapter) Detach

func (a *Adapter) Detach()

func (*Adapter) GetDatabase

func (a *Adapter) GetDatabase() *sql.DB

func (*Adapter) Initialize

func (a *Adapter) Initialize()

func (*Adapter) Register

func (a *Adapter) Register() (string, interface{})

type Configuration

type Configuration struct {
	ConnectionString             string `protobuf:"bytes,1,opt,name=connection_string,json=connectionString,proto3" json:"connection_string,omitempty"`
	ConnectionMaxLifetimeSeconds int64  `` /* 150-byte string literal not displayed */
	ConnectionMaxIdle            int64  `protobuf:"varint,3,opt,name=connection_max_idle,json=connectionMaxIdle,proto3" json:"connection_max_idle,omitempty"`
	ConnectionMaxOpen            int64  `protobuf:"varint,4,opt,name=connection_max_open,json=connectionMaxOpen,proto3" json:"connection_max_open,omitempty"`
	Dialect                      string `protobuf:"bytes,5,opt,name=dialect,proto3" json:"dialect,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

func (*Configuration) Descriptor() ([]byte, []int)

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetConnectionMaxIdle

func (x *Configuration) GetConnectionMaxIdle() int64

func (*Configuration) GetConnectionMaxLifetimeSeconds

func (x *Configuration) GetConnectionMaxLifetimeSeconds() int64

func (*Configuration) GetConnectionMaxOpen

func (x *Configuration) GetConnectionMaxOpen() int64

func (*Configuration) GetConnectionString

func (x *Configuration) GetConnectionString() string

func (*Configuration) GetDialect

func (x *Configuration) GetDialect() string

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

func (x *Configuration) ProtoReflect() protoreflect.Message

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

Jump to

Keyboard shortcuts

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