peewee Documentation
Release 3.5.0control. Connections can be shared across threads without any additional locking. Transactions are managed explicitly by your code. Unicode is handled correctly. APSW is faster that the standard library sqlite3 used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0control. Connections can be shared across threads without any additional locking. Transactions are managed explicitly by your code. Unicode is handled correctly. APSW is faster that the standard library sqlite3 used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0control. Connections can be shared across threads without any additional locking. Transactions are managed explicitly by your code. Unicode is handled correctly. APSW is faster that the standard library sqlite3 used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0• Connections can be shared across threads without any additional locking. • Transactions are managed explicitly by your code. • Unicode is handled correctly. • APSW is faster that the standard library used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db.create_tables(MODELS) the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0• Connections can be shared across threads without any additional locking. • Transactions are managed explicitly by your code. • Unicode is handled correctly. • APSW is faster that the standard library used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db.create_tables(MODELS) the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0• Connections can be shared across threads without any additional locking. • Transactions are managed explicitly by your code. • Unicode is handled correctly. • APSW is faster that the standard library used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db.create_tables(MODELS) the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 2.10.2control. Connections can be shared across threads without any additional locking. Transactions are managed explicitly by your code. Unicode is handled correctly. APSW is faster that the standard library sqlite3 the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app Sqlite will treat them as text). FTS models contain a docid field which is automatically created and managed by SQLite (unless you choose to explicitly set it during model creation). Lookups on this column0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2• Connections can be shared across threads without any additional locking. • Transactions are managed explicitly by your code. • Unicode is handled correctly. • APSW is faster that the standard library the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app will treat them as text). • FTS models contain a docid field which is automatically created and managed by SQLite (unless you choose to explicitly set it during model creation). Lookups on this column0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.6.0control. Connections can be shared across threads without any additional locking. Transactions are managed explicitly by your code. Unicode is handled correctly. APSW is faster that the standard library sqlite3 used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0• Connections can be shared across threads without any additional locking. • Transactions are managed explicitly by your code. • Unicode is handled correctly. • APSW is faster that the standard library used as a decorator: @db.connection_context() def prepare_database(): # DB connection will be managed by the decorator, which opens # a connection, calls function, and closes upon returning. db.create_tables(MODELS) the documentation I believe the following code should ensure the database connections are properly managed: # app.py from bottle import hook #, route, etc, etc. from peewee import * db = SqliteDatabase('my-bottle-app0 码力 | 302 页 | 1.02 MB | 1 年前3
共 16 条
- 1
- 2













