mysql

package
v2.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 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) error

Generate generates jet files at destination dir from database connection details

func GenerateDSN

func GenerateDSN(dsn, destDir string, templates ...template.Template) 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