Re: [sqlalchemy] Re: Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-04 Thread mike bayer
On 03/03/2017 06:31 PM, Евгений Рымарев wrote: call_special_firebird_method Not understand. What method? You mean fdb method? yes, whatever workaround fdb gives you for this issue. I found method _Connection__set_default_tpb and use it. | app =Flask(__name__)

[sqlalchemy] Re: Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread Евгений Рымарев
full error Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/sqlalchemy/pool.py", line 1122, in _do_get return self._pool.get(wait, self._timeout) File "/usr/local/lib/python3.5/site-packages/sqlalchemy/util/queue.py", line 145, in get raise Empty

[sqlalchemy] Re: Flask app, sqlalchemy and daemon - how right connect to db?

2017-03-03 Thread Евгений Рымарев
>>call_special_firebird_method Not understand. What method? You mean fdb method? I found method _Connection__set_default_tpb and use it. app = Flask(__name__) app.config.from_pyfile(filename='settings.py', silent=True) db = SQLAlchemy(app=app) engine =