database

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDbClient

func NewDbClient(ctx context.Context, server string, port int, database string) (*sql.DB, error)

TODO(mheberling): Make interfaces like service bus to use other types of db.

func NewDbClientWithConnectionString

func NewDbClientWithConnectionString(ctx context.Context, connectionstring string) (*sql.DB, error)

func QueryDb

func QueryDb(ctx context.Context, db *sql.DB, query string) (*sql.Rows, error)

TODO(mheberling): Change this to return something more digestible than sql.Rows?

Types

This section is empty.

Jump to

Keyboard shortcuts

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