client

package
v0.0.0-...-79657bf Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentResponse

type CurrentResponse struct {
	User    string
	DBName  string
	Version string
}

type DatabaseClient

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

func New

func New(driver string, dsn string) (*DatabaseClient, error)

func (*DatabaseClient) ClientIsSupported

func (c *DatabaseClient) ClientIsSupported() bool

func (*DatabaseClient) Current

func (c *DatabaseClient) Current(ctx context.Context) (crt CurrentResponse, err error)

func (*DatabaseClient) CurrentPostgres

func (c *DatabaseClient) CurrentPostgres(ctx context.Context) (crt CurrentResponse, err error)

Jump to

Keyboard shortcuts

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