sql

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMigrationsPath

func WithMigrationsPath(path string) sqlDatabaseOption

Types

type SqlClient

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

func NewSqlClient

func NewSqlClient(name string) (*SqlClient, error)

func NewSqlDatabase

func NewSqlDatabase(name string, opts ...sqlDatabaseOption) *SqlClient

NewSqlDatabase - Create a new Sql Database resource

func (*SqlClient) ConnectionString

func (s *SqlClient) ConnectionString(ctx context.Context) (string, error)

func (*SqlClient) Name

func (s *SqlClient) Name() string

type SqlClientIface

type SqlClientIface interface {
	// Name - The name of the store
	Name() string
	// Get a value from the store
	ConnectionString(ctx context.Context) (string, error)
}

Jump to

Keyboard shortcuts

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