peewee Documentation
Release 3.5.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas={'journal_mode': 'wal'}) is provided by the pool module, included in the playhouse extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. from playhouse PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas=(('journal_mode', 'wal') is provided by the pool module, included in the playhouse extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. from playhouse PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas={'journal_mode': 'wal'}) from playhouse.postgres_ext provided by the pool module, included in the playhouse extensions library. The pool supports: • Timeout after which connections will be recycled. • Upper bound on the number of open connections. from page) 1.5. Database 29 peewee Documentation, Release 3.5.0 (continued from previous page) stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following pooled database0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas=(('journal_mode', 'wal'),)) (continues on next provided by the pool module, included in the playhouse extensions library. The pool supports: • Timeout after which connections will be recycled. 1.6. Database 49 peewee Documentation, Release 3.4.0 PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following pooled database0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 3.3.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas=(('journal_mode', 'wal'),)) from playhouse.postgres_ext provided by the pool module, included in the playhouse extensions library. The pool supports: • Timeout after which connections will be recycled. • Upper bound on the number of open connections. from PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db 1.6. Database 49 peewee0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas={'journal_mode': 'wal'}) is provided by the pool module, included in the playhouse extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. from playhouse PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas={'journal_mode': 'wal'}) from playhouse.postgres_ext provided by the pool module, included in the playhouse extensions library. The pool supports: • Timeout after which connections will be recycled. 1.5. Database 29 peewee Documentation, Release 3.6.0 PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following pooled database0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.0.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas=(('journal_mode', 'wal') module, included in the Playhouse, extensions to Peewee extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. from playhouse PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.1.0Use SQLite (will register a REGEXP function and set busy timeout to 3s). db = SqliteExtDatabase('/path/to/app.db', regexp_function=True, timeout=3, pragmas=(('journal_mode', 'wal') is provided by the pool module, included in the playhouse extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. from playhouse PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 2.10.2module, included in the Playhouse, extensions to Peewee extensions library. The pool supports: Timeout after which connections will be recycled. Upper bound on the number of open connections. The connection PooledPostgresqlExtDatabase db = PooledPostgresqlExtDatabase( 'my_database', max_connections=8, stale_timeout=300, user='postgres') class BaseModel(Model): class Meta: database = db The following started manually. queue_max_size=64, # Max. # of pending writes that can accumulate. results_timeout=5.0) # Max. time to wait for query to be executed. If autostart=False, as in the above example0 码力 | 275 页 | 276.96 KB | 1 年前3
共 13 条
- 1
- 2













