Skip to main content

Module pool

Module pool 

Source
Expand description

Connection pool for SQLite.

This module provides an optimized connection pool for SQLite databases. Unlike PostgreSQL/MySQL, SQLite has unique characteristics:

  • In-memory databases: Each connection has its own isolated database
  • File-based databases: Connections share the same database file

For file-based databases, this pool reuses connections to avoid the overhead of opening new connections (~200µs per open).

Structs§

PoolConfig
Configuration for the connection pool.
PoolStats
Statistics about pool usage.
SqlitePool
A connection pool for SQLite.
SqlitePoolBuilder
Builder for creating a connection pool.