Documentation
¶
Index ¶
- Variables
- func Backup(ctx context.Context, db *sql.DB, w io.Writer) error
- func BuildCreateDSN(rawDSN string, cfg LoadConfig) (string, error)
- func Connector(id string) (*ha.Connector, error)
- func Create(ctx context.Context, rawDSN string, cfg LoadConfig) error
- func DB(id string) (*sql.DB, error)
- func Databases() []string
- func Drop(ctx context.Context, id string) (string, error)
- func IdFromDSN(dsn string) string
- func IsQuery(ctx context.Context, sql string) bool
- func Load(ctx context.Context, dsn string, cfg LoadConfig) error
- func ResolveDatabaseID(name string) (string, bool)
- func Shutdown()
- type LoadConfig
- type ProxiedDBConfig
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDatabaseNotFound = errors.New("database not found")
)
Functions ¶
func BuildCreateDSN ¶ added in v0.15.6
func BuildCreateDSN(rawDSN string, cfg LoadConfig) (string, error)
func Create ¶ added in v0.15.6
func Create(ctx context.Context, rawDSN string, cfg LoadConfig) error
func ResolveDatabaseID ¶ added in v0.15.6
Types ¶
type LoadConfig ¶ added in v0.11.4
type ProxiedDBConfig ¶ added in v0.11.4
type ProxiedDBConfig struct {
PgDSN string
PgPublicationName string
PgSlotName string
MysqlDSN string
MysqlInclude string
MysqlExclude string
MysqlID string
MysqlDumpBin string
MysqlDumpDB string
MysqlDumpTables []string
DebeziumBroker string
DebeziumGroup string
DebeziumTopics []string
DebeziumSourceDSN string
LocalDB string
UseSchema bool
DisableRedirect bool
ReadYourWrites bool
}
Click to show internal directories.
Click to hide internal directories.