Documentation
¶
Index ¶
Constants ¶
View Source
const MaxAttempts = 1_000_000
Variables ¶
View Source
var ErrMaxAttemptsExceeded = errors.New("max numbers of attempts exceeded")
Functions ¶
func CreateBatchSize ¶
func CreateBatchSize[T any](c *Connection) (size int, err error)
Types ¶
type Connection ¶
type Connection struct {
Driver DriverName
TransactionCounter atomic.Int64
Logger *slog.Logger
*gorm.DB
}
func SQLite ¶
func SQLite(config Config) (conn *Connection, err error)
Easier local testing Database. Should not be used in production.
func (*Connection) Close ¶
func (conn *Connection) Close() (err error)
Click to show internal directories.
Click to hide internal directories.