Documentation
¶
Overview ¶
Package iodb implements database operations using pgxpool. This is an impure I/O package that implements contracts defined in pkg/.
Index ¶
- func ConnectionError(host string, port int, database string, user string, err error) error
- func CreateViewError(viewName string, err error) error
- func CreateViewIndexError(viewName string, err error) error
- func DeleteDatasetError(table string, err error) error
- func DropTableError(tableName string, err error) error
- func DropViewError(viewName string, err error) error
- func EmptyDatabaseError(host, database string) error
- func NewPgxOperator() db.Operator
- func NotConnectedError() error
- func QueryDataSourcesError(err error) error
- func QueryTablesError(err error) error
- func QueryViewsError(err error) error
- func ScanTableError(err error) error
- func ScanViewError(err error) error
- func TableCheckError(err error) error
- func TableExistsCheckError(tableName string, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionError ¶
ConnectionError creates an error for database connection failures.
func CreateViewError ¶ added in v0.0.3
CreateViewError creates an error for when creating materialized view fails.
func CreateViewIndexError ¶ added in v0.0.3
CreateViewIndexError creates an error for when creating index on materialized view fails.
func DeleteDatasetError ¶ added in v0.1.4
DeleteDatasetError creates an error for when deleting dataset records from a table fails.
func DropTableError ¶
DropTableError creates an error for when dropping table fails.
func DropViewError ¶ added in v0.0.3
DropViewError creates an error for when dropping materialized view fails.
func EmptyDatabaseError ¶
EmptyDatabaseError creates an error for when database has no tables.
func NewPgxOperator ¶
NewPgxOperator creates a new database operator (without connecting).
func NotConnectedError ¶
func NotConnectedError() error
NotConnectedError creates an error for when operation is attempted without connection.
func QueryDataSourcesError ¶ added in v0.1.4
QueryDataSourcesError creates an error for when querying data sources fails.
func QueryTablesError ¶
QueryTablesError creates an error for when querying table list fails.
func QueryViewsError ¶ added in v0.0.3
QueryViewsError creates an error for when querying materialized view list fails.
func ScanTableError ¶
ScanTableError creates an error for when scanning table name fails.
func ScanViewError ¶ added in v0.0.3
ScanViewError creates an error for when scanning view name fails.
func TableCheckError ¶
TableCheckError creates an error for when checking table existence fails.
func TableExistsCheckError ¶
TableExistsCheckError creates an error for when checking table existence fails.
Types ¶
This section is empty.