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

# Packages

No description provided by the author

# Functions

DeriveColumnNamesFromTags extracts column names from a struct's tags.
GenerateRandomInt64Id generates a random 64-bit ID.
NewDbShardManager is a constructor that ensures the inner map is always initialized.
NewPreparedStatement creates a new prepared statement.
StructsToRows converts a slice of structs to a [][]interface{} for use with pgx.CopyFromRows.

# Structs

ConnConfig represents the configuration required for database connection.
MasterReplicaManager manages master and read replica instances.
PreparedStatement represents a prepared statement query.
PreparedStatementsMap represents a map of DbShard and their respective prepared statements.
ShardManager manages a pool of database shards, keeping them in a map.

# Interfaces

Batch defines the interface for managing a batch of SQL statements to be executed within a transaction.
InstanceManager defines a contract for managing database connections and executing queries within a database instance.
RowConvertibleEntity defines an interface for converting a struct into a row of values for database insertion.
Transaction defines the interface for managing database transactions.

# Type aliases

DbShard represents the shard instance key.