database

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMySQL      = "MySQL"
	TypePostgreSQL = "PostgreSQL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Header               `yaml:",inline" json:",inline"`
	*mysql.MySQL         `yaml:",inline" json:",inline"`
	*postgres.PostgreSQL `yaml:",inline" json:",inline"`
}

func (Database) MarshalJSON

func (db Database) MarshalJSON() ([]byte, error)

func (Database) MarshalYAML

func (db Database) MarshalYAML() (interface{}, error)

func (*Database) UnmarshalJSON

func (db *Database) UnmarshalJSON(data []byte) error

func (*Database) UnmarshalYAML

func (db *Database) UnmarshalYAML(unmarshal func(interface{}) error) error
type Header struct {
	Type Type `yaml:"_type" json:"_type"`
}

type Type

type Type string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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