mysql

package
v0.0.0-...-894d565 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(destDir string, dbConn DBConnection, generatorTemplate ...template.Template) (err error)

Generate generates jet files at destination dir from database connection details

func GenerateDSN

func GenerateDSN(dsn, destDir string, templates ...template.Template) (err error)

GenerateDSN opens connection via DSN string and does everything what Generate does.

Types

type DBConnection

type DBConnection struct {
	Host     string
	Port     int
	User     string
	Password string
	Params   string

	DBName string
}

DBConnection contains MySQL connection details

Jump to

Keyboard shortcuts

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