peewee Documentation Release 2.10.2Extensions SqliteQ Sqlite User-Defined Functions apsw, an advanced sqlite driver BerkeleyDB backend Sqlcipher backend Postgresql Extensions DataSet Django Integration Fields Generic foreign keys Hybrid Attributes implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. This module should be built using the build_sqlite_ext command. Note If you whether this field is the primary key for the table sequence = None – sequence to populate field (if backend supports it) constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] schema0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. This module should be built using the build_sqlite_ext command. Note: If you this field is the primary key for the table • sequence = None – sequence to populate field (if backend supports it) • constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] Updating existing records Once a model instance has a primary key, any subsequent call to save() will result in an UPDATE rather than another INSERT. The model’s primary key will not change: >>> user.save()0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation
Release 2.0.2With the benefit of hindsight and experience, I decided to rewrite and unify the API a bit. The result is a tradeoff. The newer syntax may be a bit more verbose at times, but at least it will be consistent database – the Database subclass and an Adapter. The adapter’s job was to say what features a database backend provided, what operations were valid, what column types were supported, and how to open a connection Updating existing records Once a model instance has a primary key, any attempt to re-save it will result in an UPDATE rather than another INSERT: >>> user.save() >>> user.id 1 >>> user.save() >>> user0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation
Release 3.5.0extensions to Peewee SqliteQ Sqlite User-Defined Functions apsw, an advanced sqlite driver Sqlcipher backend Postgresql Extensions MySQL Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. Installing with git The project is hosted at https://github.com/coleifer/peewee more information on database extensions, see: Postgresql Extensions SQLite Extensions Sqlcipher backend apsw, an advanced sqlite driver SqliteQ Initializing a Database The Database initialization method0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0extensions to Peewee SqliteQ Sqlite User-Defined Functions apsw, an advanced sqlite driver Sqlcipher backend Postgresql Extensions MySQL Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. Installing with git The project is hosted at https://github.com/coleifer/peewee more information on database extensions, see: Postgresql Extensions SQLite Extensions Sqlcipher backend apsw_ext SqliteQ Initializing a Database The Database initialization method expects the name of0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0extensions to Peewee SqliteQ Sqlite User-Defined Functions apsw, an advanced sqlite driver Sqlcipher backend Postgresql Extensions DataSet Fields Hybrid Attributes Shortcuts Signal support pwiz, a model generator implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. Installing with git The project is hosted at https://github.com/coleifer/peewee more information on database extensions, see: Postgresql Extensions SQLite Extensions Sqlcipher backend apsw_ext SqliteQ Initializing a Database The Database initialization method expects the name of0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 1.0.0Updating existing records Once a model instance has a primary key, any attempt to re-save it will result in an UPDATE rather than another INSERT: >>> blog.save() >>> blog.id 2 >>> blog.save() >>> blog arguments). This method is a shortcut that calls Model.select() with the given query, but limits the result set to 1. Additionally, if no model matches the given query, a DoesNotExist exception will be raised to iterate without caching each model returned, using much less memory when iterating over large result sets: # let's assume we've got 1M stat objects to dump to csv stats_qr = Stat.select().execute()0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation Release 3.0.0extensions to Peewee SqliteQ Sqlite User-Defined Functions apsw, an advanced sqlite driver Sqlcipher backend Postgresql Extensions DataSet Fields Hybrid Attributes Shortcuts Signal support pwiz, a model generator implementations of the SQLite date manipulation functions, the REGEXP operator, and full-text search result ranking algorithms. Installing with git The project is hosted at https://github.com/coleifer/peewee more information on database extensions, see: Postgresql Extensions SQLite Extensions Sqlcipher backend apsw_ext SqliteQ Initializing a Database The Database initialization method expects the name of0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 1.0.0Updating existing records Once a model instance has a primary key, any attempt to re-save it will result in an UPDATE rather than another INSERT: >>> blog.save() >>> blog.id 2 >>> blog.save() 1.3. Peewee arguments). This method is a shortcut that calls Model.select() with the given query, but limits the result set to 1. Addition- ally, if no model matches the given query, a DoesNotExist exception will be raised to iterate without caching each model returned, using much less memory when iterating over large result sets: # let’s assume we’ve got 1M stat objects to dump to csv stats_qr = Stat.select().execute()0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation Release 0.9.7Updating existing records Once a model instance has a primary key, any attempt to re-save it will result in an UPDATE rather than another INSERT: >>> blog.save() >>> blog.id 2 >>> blog.save() >>> blog arguments). This method is a shortcut that calls Model.select() with the given query, but limits the result set to 1. Additionally, if no model matches the given query, a DoesNotExist exception will be raised to iterate without caching each model returned, using much less memory when iterating over large result sets: # let's assume we've got 1M stat objects to dump to csv stats_qr = Stat.select().execute()0 码力 | 78 页 | 143.68 KB | 1 年前3
共 16 条
- 1
- 2













