peewee Documentation Release 2.10.2after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Multi-threaded applications peewee stores the connection state in a thread local, so each thread gets its0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2after_request def after_request(response): database.close() return response Note: Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default MySQLDatabase instance for the local MySQL database my_db. • More examples in the db_url documentation. 1.6.7 Multi-threaded applications peewee stores the connection state in a thread local, so each thread gets0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.0.0after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default port to connect to. mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Run-time database configuration0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default port to connect to. mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Run-time database configuration0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default port to connect to. mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Run-time database configuration0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default port to connect to. mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Run-time database configuration0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0after_request def after_request(response): database.close() return response Note: Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default to connect to. • mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. • More examples in the db_url documentation. 1.5.6 Run-time database configuration0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0after_request def after_request(response): database.close() return response Note: Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default to connect to. • mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. • More examples in the db_url documentation. 1.6.6 Run-time database configuration0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0after_request def after_request(response): database.close() return response Note: Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default to connect to. • mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. • More examples in the db_url documentation. 1.6.6 Run-time database configuration0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0after_request def after_request(response): database.close() return response Note Peewee uses thread local storage to manage connection state, so this pattern can be used with multi-threaded WSGI servers. db_url import connect # Connect to the database URL defined in the environment, falling # back to a local Sqlite database if no database URL is specified. db = connect(os.environ.get('DATABASE') or 'sqlite:///default port to connect to. mysql://user:passwd@ip:port/my_db will create a MySQLDatabase instance for the local MySQL database my_db. More examples in the db_url documentation. Run-time database configuration0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













