peewee Documentation Release 3.5.0
def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration`0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration`0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Other frameworks Don’t see your def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration`0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
Release 3.5.0 (continued from previous page) """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling connect() def _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.3.0
Release 3.3.0 (continued from previous page) """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling Release 3.3.0 (continued from previous page) db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling connect() def _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.0.0
_db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Other frameworks Don’t see your def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` ) Same as FTSModel.search_bm25(), but using the result ranking algorithm from the Lucene search engine. classmethod rank([col1_weight, col2_weight...coln_weight]) col_weight (float) – (Optional) weight0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.6.0
def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration`0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling connect() def _db_close(): if not db.is_closed(): db.close() cherrypy.engine.subscribe('before_request', _db_connect) cherrypy.engine.subscribe('after_request', _db_close) Sanic In Sanic, the connection self.step = step def iterate(self, idx): """ Iterate is called repeatedly by the SQLite database engine until the required number of rows has been read **or** the function raises a `StopIteration` signalling0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 1.0.0
py my_postgresql_database It works with postgresql, mysql and sqlite: python pwiz.py test.db --engine=sqlite pwiz will generate code for: database connection object a base model class to use this connection closing connections to the database, as well as describing the features provided by the database engine Database - higher-level interface that executes queries, manage transactions, and can introspect connect(database, **kwargs) Now we want to create a mapping that exposes the operations our database engine supports. These are the operations that a user perform when building out the WHERE clause of a given0 码力 | 101 页 | 163.20 KB | 1 年前3
共 16 条
- 1
- 2