package
0.0.0-20240720195308-8d80bd9bb541
Repository: https://github.com/teamkweku/code-odessey.git
Documentation: pkg.go.dev

# Functions

ErrorCode extracts the error code from a pgconn.PgError Function that returns the error code based on the error or nothing to use default error in code.
No description provided by the author
creating a NewStore.

# Constants

Constants for PostgreSQL error codes ForeignKeyViolation represents a foreign key violation error UniqueViolation represents a unique constraint violation error.
Constants for PostgreSQL error codes ForeignKeyViolation represents a foreign key violation error UniqueViolation represents a unique constraint violation error.

# Variables

ErrRecordNotFound is returned when a query returns no rows.
ErrUniqueViolation is returned when a unique constraint is violated.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteBlogTxParams contains the input parameters of the delete blog transaction.
DeleteBlogTxResult is the result of the delete blog transaction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
provides functionality for executing all SQL queries and transactions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
store defines all the functions related to execute db queries and also contains code for transactions in DB.