db

package
v0.0.0-...-71a4898 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

TODO add copyrigths

TODO add copyrigths

TODO add copyrigths

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedTypes

func SupportedTypes() []string

SupportedTypes list suported db handler

Types

type DB

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

DB contain the DB

func NewDB

func NewDB(dbType, host, user, pass, cfg, rtme string) (*DB, error)

NewDB create DB object

func NewDBFromURL

func NewDBFromURL(dbType, cfgURL, rtmeURL string) *DB

NewDBFromURL create DB object directly from url

func (*DB) CFG

func (db *DB) CFG() (*xorm.Engine, error)

CFG handle to config database

func (*DB) RTME

func (db *DB) RTME() (*xorm.Engine, error)

RTME handle to rtme database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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