datastore

package
v0.0.0-...-f6ba348 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSqlXInstance

func NewSqlXInstance(databaseURL string) *sqlx.DB

NewDatabase will create new database instance

Types

type MasterDbInstance

type MasterDbInstance struct {
	// contains filtered or unexported fields
}

func NewMasterDbInstance

func NewMasterDbInstance(databaseURL string) *MasterDbInstance

func (*MasterDbInstance) DBX

func (m *MasterDbInstance) DBX() *sqlx.DB

type SlaveDbInstance

type SlaveDbInstance struct {
	// contains filtered or unexported fields
}

func NewSlaveDbInstance

func NewSlaveDbInstance(databaseURL string) *SlaveDbInstance

func (*SlaveDbInstance) DBX

func (m *SlaveDbInstance) DBX() *sqlx.DB

Jump to

Keyboard shortcuts

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