migration

package
v0.0.0-...-a14c69b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion(dataRootDBSession *sqlx.DB) (int, error)

func CreateClokiDB

func CreateClokiDB(dataRootDBSession *sqlx.DB, dbname *string, user *string)

func CreateClokiTables

func CreateClokiTables(DBSession *sqlx.DB, clokiDBName string)

func CreateNewUser

func CreateNewUser(dataRootDBSession *sqlx.DB, user *string, password *string)

func GenerateSQL

func GenerateSQL(table string, values interface{}, engine string) string

DBFields reflects on a struct and returns the values of fields with `db` tags, or a map[string]interface{} and returns the keys.

func GetDataRootDBSession

func GetDataRootDBSession(user *string, password *string, dbname *string, host *string, port *int) (*sqlx.DB, error)

getSession creates a new root session and panics if connection error occurs

Types

type RollesTable

type RollesTable struct {
	Username   string `json:"Username"`
	Attributes string `json:"Attributes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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