{"repo":"andrei-polukhin/pgdbtemplate","free":true,"listed":false,"github":"https://github.com/andrei-polukhin/pgdbtemplate","clone":"git clone https://github.com/andrei-polukhin/pgdbtemplate.git","description":"Go library for creating PostgreSQL test databases using template databases for lightning-fast test execution.","language":"Go","stars":78,"topics":["database","go","golang","performance","pgx","postgresql","testcontainers","testing","pq"],"license":null,"category":"databases-storage","readme_excerpt":"pgdbtemplate A high-performance Go library for creating PostgreSQL test databases using template databases for lightning-fast test execution. Features - 🚀 Lightning-fast test databases - 1.2-1.6x faster than traditional approach, scales to 500 databases, 17% less memory usage - 🔒 Thread-safe - concurrent test database management - 📊 Scales with complexity - performance advantage increases with schema complexity - ⚡ Multiple drivers - supports both pq and pgx drivers - 🧪 Flexible testing support for various test scenarios - 📦 Testcontainers integration for containerized testing - 🔧 Configurable migration runners and connection providers Why Choose pgdbtemplate ? Evaluating PostgreSQL testing libraries? See our detailed comparison with other solutions. Installation Choose a PostgreSQL Driver Choose either one of these PostgreSQL drivers: - github.com/andrei-polukhin/pgdbtemplate-pgx (for pgx/v5 with connection pooling) - github.com/andrei-polukhin/pgdbtemplate-pq (for database/sql with lib/pq ) - github.com/andrei-polukhin/pgdbtemplate-pgx-v4 (for pgx/v4 with connection pooling) Migration Library Support pgdbtemplate supports multiple migration libraries through dedicated adapters: - goose - Popular migration tool with broad feature set - golang-migrate - Widely-used CLI and library - Atlas - Modern declarative migration tool Or use the built-in file-based migration runner for simple SQL migrations. Quick Start Usage Examples 1. Pgx Testing with Existing PostgreSQL 2. Int","default_branch":null,"files":null,"tree":[],"storefront":"/r/andrei-polukhin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andrei-polukhin/pgdbtemplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}