dbs4ruts

package module
v0.0.0-...-98a8ebb Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 9 Imported by: 0

README

dbs4ruts

This library is made for personal used. You may modify or use it by your own risk.

About

This is a database cluster utilities library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDBparameter

func ExtractDBparameter(h string) (dbtype string, username string, password string, host string, db string, param string)

func Q

func Q(dbtype, query string) (output string)

Types

type DB4ruts

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

func OpenDB

func OpenDB(dbs string) (*DB4ruts, error)

func OpenDBS

func OpenDBS(dbs []string) (*DB4ruts, error)

func (*DB4ruts) Close

func (db *DB4ruts) Close() error

func (*DB4ruts) DB

func (db *DB4ruts) DB() *sql.DB

func (*DB4ruts) DBType

func (db *DB4ruts) DBType() string

func (*DB4ruts) Exec

func (db *DB4ruts) Exec(query string, arg ...interface{}) (sql.Result, error)

func (*DB4ruts) Host

func (db *DB4ruts) Host() string

func (*DB4ruts) Query

func (db *DB4ruts) Query(query string, arg ...interface{}) (*sql.Rows, error)

Jump to

Keyboard shortcuts

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