peewee Documentation Release 2.10.2
Connection Pooling Read Slaves Schema migrations Generating Models from Existing Databases Adding Request Hooks Additional connection initialization Advanced Connection Management Using multiple databases Database database.close() Note For examples of configuring connection hooks for several popular web frameworks, see the Adding Request Hooks section. Note For advanced connection management techniques, see a request comes in, and close the connection when you return a response. See the Adding Request Hooks for more information. If you would like to automatically reconnect and retry queries that fail due0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
: database.close() Note: For examples of configuring connection hooks for several popular web frameworks, see the Adding Request Hooks section. Note: For advanced connection management techniques, see a request comes in, and close the connection when you return a response. See the Adding Request Hooks for more information. If you would like to automatically reconnect and retry queries that fail due 6.14 Adding Request Hooks When building web-applications, it is very important that you manage your database connections correctly. In this section I will describe how to add hooks to your web app to ensure0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.0.0
a request comes in, and close the connection when you return a response. See the adding_request_hooks for more information. Connecting using a Database URL The playhouse module Database URL provides to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.5.0
[http://initd.org/psycopg], which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
[http://initd.org/psycopg], which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.5.0
Postgres and psycopg2, which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
Postgres and psycopg2, which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
Postgres and psycopg2, which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.6.0
[http://initd.org/psycopg], which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
Postgres and psycopg2, which is a C extension, you can use the following code snippet to register event hooks that will make your connection async: from gevent.socket import wait_read, wait_write from psycopg2 to close the connection when the response is delivered. In this section I will describe how to add hooks to your web app to ensure the database connection is handled properly. These steps will ensure that Flask Flask and peewee are a great combo and my go-to for projects of any size. Flask provides two hooks which we will use to open and close our db connection. We’ll open the connection when a request is0 码力 | 302 页 | 1.02 MB | 1 年前3
共 14 条
- 1
- 2