package
0.0.0-20250307145209-c3a19bf62e49
Repository: https://github.com/ardanlabs/service.git
Documentation: pkg.go.dev

# Packages

Package dbarray provides support for database array types.

# Functions

ExecContext is a helper function to execute a CUD operation with logging and tracing.
GetExtContext is a helper function that extracts the sqlx value from the domain transactor interface for transactional use.
NamedExecContext is a helper function to execute a CUD operation with logging and tracing where field replacement is necessary.
NamedQuerySlice is a helper function for executing queries that return a collection of data to be unmarshalled into a slice where field replacement is necessary.
NamedQuerySliceUsingIn is a helper function for executing queries that return a collection of data to be unmarshalled into a slice where field replacement is necessary.
NamedQueryStruct is a helper function for executing queries that return a single value to be unmarshalled into a struct type where field replacement is necessary.
NamedQueryStructUsingIn is a helper function for executing queries that return a single value to be unmarshalled into a struct type where field replacement is necessary.
NewBeginner constructs a value that implements the beginner interface.
Open knows how to open a database connection based on the configuration.
QuerySlice is a helper function for executing queries that return a collection of data to be unmarshalled into a slice.
QueryStruct is a helper function for executing queries that return a single value to be unmarshalled into a struct type where field replacement is necessary.
StatusCheck returns nil if it can successfully talk to the database.

# Variables

Set of error variables for CRUD operations.
Set of error variables for CRUD operations.
Set of error variables for CRUD operations.

# Structs

Config is the required properties to use the database.
DBBeginner implements the Beginner interface,.

# Interfaces

Beginner represents a value that can begin a transaction.
CommitRollbacker represents a value that can commit or rollback a transaction.