peewee Documentation Release 2.10.2and SQLite C extensions. Support for the closure table [http://charlesleifer.com/blog/querying-tree-structures-in-sqlite-using- python-and-the-transitive-closure-extension/] extension, which allows efficient example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') unload_extension(name): transitive closure [http://www.sqlite.org/cgi/src/artifact/636024302cde41b2bf0c542f81c40c624cfb7012] table. Closure tables are VirtualModel subclasses that work with the transitive closure SQLite extension0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation Release 3.0.0example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') transaction([lock_type=None]) sqlite_ext includes even more SQLite features, including: Full-text search JSON extension integration Closure table extension support LSM1 extension support User-defined table functions Support for online backups relation. Returns a VirtualModel for working with a closure table. Factory function for creating a model class suitable for working with a transitive closure [http://www.sqlite.org/cgi/src/artifact/6360240 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') attach(filename, name) filename sqlite_ext includes even more SQLite features, including: Full-text search JSON extension integration Closure table extension support LSM1 extension support User-defined table functions Support for online backups relation. Returns a VirtualModel for working with a closure table. Factory function for creating a model class suitable for working with a transitive closure [http://www.sqlite.org/cgi/src/artifact/6360240 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') attach(filename, name) filename sqlite_ext includes even more SQLite features, including: Full-text search JSON extension integration Closure table extension support LSM1 extension support User-defined table functions Support for online backups relation. Returns a VirtualModel for working with a closure table. Factory function for creating a model class suitable for working with a transitive closure [http://www.sqlite.org/cgi/src/artifact/6360240 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') transaction([lock_type=None]) sqlite_ext includes even more SQLite features, including: Full-text search JSON extension integration Closure table extension support LSM1 extension support User-defined table functions Support for online backups relation. Returns a VirtualModel for working with a closure table. Factory function for creating a model class suitable for working with a transitive closure [http://www.sqlite.org/cgi/src/artifact/6360240 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 3.6.0example, if you’ve compiled the closure table extension and wish to use it in your application, you might write: db = SqliteExtDatabase('my_app.db') db.load_extension('closure') attach(filename, name) filename sqlite_ext includes even more SQLite features, including: Full-text search JSON extension integration Closure table extension support LSM1 extension support User-defined table functions Support for online backups relation. Returns a VirtualModel for working with a closure table. Factory function for creating a model class suitable for working with a transitive closure [http://www.sqlite.org/cgi/src/artifact/6360240 码力 | 377 页 | 399.12 KB | 1 年前3
Computer Programming with the Nim Programming Language
currently provides two types of iterators — inline iterators, which are currently the default type, and closure iterators, which are similar to functions. Inline iterators create a hidden while loop whenever restrictions and increase the final code size of the executable, much as an explicit while loop would do. Closure iterators are real entities, like procedures, meaning we can assign them to variables. However, sub-procedures access variables of the outer scope. In this case, the sub-procedure is called a closure: proc digitScanner(s: string) = var pos = 0 proc nextDigit: char = while pos < s.len and0 码力 | 865 页 | 7.45 MB | 1 年前3
Computer Programming with the Nim Programming Language
currently provides two types of iterators — inline iterators, which are currently the default type, and closure iterators, which are similar to functions. Inline iterators create a hidden while loop whenever restrictions and increase the final code size of the executable, much as an explicit while loop would do. Closure iterators are real entities, like procedures, meaning we can assign them to variables. However, sub-procedures access variables of the outer scope. In this case, the sub-procedure is called a closure: proc digitScanner(s: string) = var pos = 0 proc nextDigit: char = while pos < s.len and0 码力 | 784 页 | 2.13 MB | 1 年前3
CakePHP Cookbook Documentation 5.xin CakePHP 4.x. DateType::setLocaleFormat() no longer accepts an array. Query now accepts only \Closure parameters instead of callable. Callables can be converted to closures using the new first-class declared with a space after the function keyword, and a space before and after the use keyword: $closure = function ($arg1, $arg2) use ($var1, $var2) { // code }; Method Chaining Method chaining checks. validationFailureCallback Callback to call in case of validation failure. Must be a valid Closure. Unset by default in which case exception is thrown on validation failure. Disabling form tampering0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
be attached to a query using Query::with(). Query::orderAsc() and Query::orderDesc() now accept Closure’s as their field enabling you to use build complex order expressions with the provided QueryExpression middlewares, i.e. classes with __invoke($request, $response, $next) method are deprecated. Instead use Closure with signature function($request, $handler) or classes which implement Psr\Http\Server\MiddlewareInterface deprecated. Instead use the className option. Datasource FactoryLocator::add() no longer accepts closure factory functions. Instead you must pass an instance of the LocatorInterface. Cake\Datasource\Paging\Paginator0 码力 | 1249 页 | 1.04 MB | 1 年前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













