Taking inspiration from the waterpark library, the connection pooling mechanism has been refactored to be thread-safe. Additionally, the pooling logic detects and handles stale connections in the pool. When a connection is requested from the pool, the pool first validates that it is healthy and replaces it with a fresh connection if necessary. This is transparent to the requester. Additionally we refactored the internal logging implementation to make it more conventient to access logging infrastructure and log from various sub-scopes within fiber_orm (query, pool, etc.)
15 lines
264 B
Nim
15 lines
264 B
Nim
# Package
|
|
|
|
version = "4.0.0"
|
|
author = "Jonathan Bernard"
|
|
description = "Lightweight Postgres ORM for Nim."
|
|
license = "GPL-3.0"
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
requires @["nim >= 1.4.0", "uuids"]
|
|
requires "namespaced_logging >= 2.0.2"
|