Documentation
¶
Index ¶
- func ExecDb(ctx context.Context, db *sql.DB, query string, args ...interface{}) (sql.Result, error)
- func NewDbClient(ctx context.Context, server string, port int, database string) (*sql.DB, error)
- func NewDbClientWithConnectionString(ctx context.Context, connectionstring string) (*sql.DB, error)
- func QueryDb(ctx context.Context, db *sql.DB, query string, args ...interface{}) (*sql.Rows, error)
- type NoRowsAffectedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecDb ¶ added in v0.0.8
Execute a query for "INSERT", "UPDATE", or "DELETE" methods which affect rows.
func NewDbClient ¶
Create a database connection using the database name, server, and port. Must be logged in to azure cli.
func NewDbClientWithConnectionString ¶
Create a dabatase connection using a connection string.
Types ¶
type NoRowsAffectedError ¶ added in v0.0.40
type NoRowsAffectedError struct{}
func (*NoRowsAffectedError) Error ¶ added in v0.0.40
func (e *NoRowsAffectedError) Error() string
Implementing the Error() method to satisfy the error interface
Click to show internal directories.
Click to hide internal directories.