Source: factory.core/ObjDataThreadSafe.py
Thread-safe wrapper for ObjData with automatic per-thread connections.
Each thread automatically gets its own database connection from a connection
pool. This prevents cursor conflicts and makes ObjData safe for multi-threaded
use without manual connection management.
...
| Method | Signature | Description |
|---|---|---|
| close_thread_connection | close_thread_connection(cls) |
Close connection for current thread and return to pool. |
| get_pool_stats | get_pool_stats(cls) -> dict |
Get statistics from the connection pool. |
| close_all_connections | close_all_connections(cls) |
Close all connections in the pool. |
| db_reconnect | db_reconnect(error_connect: str, sql: str, db = 0) |
ObjData with explicit connection pool context manager.
Use when you want to explicitly acquire/release connections rather than
automatic thread-local management.
...
| Method | Signature | Description |
|---|---|---|
| release_connection | release_connection() |
Return connection to pool. |