KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
gevent-db
★ 21
Open GitHub ↗
gevent cooperative database pool
Download README (.md)
Explore Similar Repositories
Slide-Downloader
:
Download slides from Slideshare, Baidu Wenku and Docin
yum-plugin-replace
:
Package Replacement Plugin for Yum
Dahlia
:
Retreat waiting list management system
firering
:
Eventmachine powered Campfire API
rubymine-stellar-theme
:
Stellar theme / colors scheme for RubyMine
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
gevent-db
?
Download (.md)
## gevent-db A gevent cooperative database pool using socketpair as bidirectional pipes with regular python threads gevent-db uses pipes to trigger events between the gevent main thread and database connection threads gevent-db supports python database specification v2.0 libraries, defaulting to pyodbc: http://code.google.com/p/pyodbc/ DBPool initializes a connection pool with given odbc connection string and pool size pool = db.DBPool('DSN=test',10) DBPool.get retrieves a connection from the pool, and blocks if no connections are available The connection destructor releases the connection back to the pool when the connection goes out of scope conn = pool.get() see examples in db.py testcases