dbmanager

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateDatabase(context.Context, *CreateDatabaseRequest) (*CreateDatabaseResponse, error)
	Close(context.Context)
}

type CreateDatabaseRequest

type CreateDatabaseRequest struct {
	Engine     string
	Migrations []string
	Prefix     string
}

type CreateDatabaseResponse

type CreateDatabaseResponse struct {
	Uri string
}

type ManagedClient

type ManagedClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(servers []config.Server) *ManagedClient

func (*ManagedClient) Close

func (m *ManagedClient) Close(ctx context.Context)

func (*ManagedClient) CreateDatabase

Jump to

Keyboard shortcuts

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