package
1.0.4-alpha.0
Repository: https://github.com/marcodd23/go-micro-core.git
Documentation: pkg.go.dev

# Functions

BulkInsertEntitiesWithTags inserts a large number of structs into a PostgreSQL table using pgx.CopyFrom.
ExecTransactionalTask performs a task inside a transaction.
NewEmptyBatch creates a new, empty batch for queuing SQL statements.
QueryAndMap uses pgx's struct scanning to map rows directly to a slice of structs.
QueryAndScan executes a query and maps the result to structs using the provided scanFunc.
QueryMapAndProcess uses pgx's struct scanning to map rows directly to a struct and then process each struct.
QueryScanAndProcess executes a query and processes each row with a callback that receives a struct.
SetupPostgresDbManager - setup Postgres DB connection.
TxExecBatch processes the results of a batch of SQL statements within a single transaction and returns the total number of rows affected.
TxQueryAndMap uses pgx's struct scanning to map rows directly to a slice of structs within a transaction.
TxQueryAndScan executes a query within a transaction and maps the result to structs using the provided scanFunc.
TxQueryMapAndProcess uses pgx's struct scanning to map rows directly to a struct and then process each struct within a transaction.
TxQueryScanAndProcess executes a query within a transaction and processes each row with a callback that receives a struct.

# Structs

PostgresDB - dbx manager.
PostgresTx - Postgres Transaction manager.