peewee Documentation Release 2.10.2Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating Fields Generic foreign keys Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL CSV Utils Connection pool Read Slaves Test Utils pskel database that will store our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: >>> db.create_tables([Person, Pet]) Storing data Let’s begin0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2database that will store our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: >>> db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s Let’s begin by populating the database with some people. We will use the save() and create() methods to add and update people’s records. >>> from datetime import date >>> uncle_bob = Person(name='Bob' person by calling the create() method, which returns a model instance: >>> grandma = Person.create(name='Grandma', birthday=date(1935, 3, 1), is_ ˓→relative=True) >>> herb = Person.create(name='Herb', birthday=date(19500 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.0.0Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating backend Postgresql Extensions DataSet Fields Hybrid Attributes Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL Connection pool Test Utils Flask Utils Query Builder options, use: python runtests.py --help Note To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.4.0Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL Connection pool Test Utils Flask Utils Query Builder options, use: python runtests.py --help Note To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL Connection pool Test Utils Flask Utils Query Examples options, use: python runtests.py --help Note To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.1.0Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating backend Postgresql Extensions DataSet Fields Hybrid Attributes Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL Connection pool Test Utils Flask Utils Query Builder options, use: python runtests.py --help Note To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 3.6.0Bulk inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating Extensions DataSet Fields Hybrid Attributes Key/Value Store Shortcuts Signal support pwiz, a model generator Schema Migrations Reflection Database URL Connection pool Test Utils Flask Utils Query Examples options, use: python runtests.py --help Note To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.4.0options, use: python runtests.py --help Note: To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install extension in the postgres test database: -- install the hstore extension on the peewee_test postgres db. CREATE EXTENSION hstore; 1.1.3 Optional dependencies Note: To use Peewee, you typically won’t need anything the database that will store our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 3.3.0options, use: python runtests.py --help Note: To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install extension in the postgres test database: -- install the hstore extension on the peewee_test postgres db. CREATE EXTENSION hstore; 1.1.3 Optional dependencies Note: To use Peewee, you typically won’t need anything the database that will store our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0options, use: python runtests.py --help Note: To run tests against Postgres or MySQL you need to create a database named “peewee_test”. To test the Postgres extension module, you will also want to install extension in the postgres test database: -- install the hstore extension on the peewee_test postgres db. CREATE EXTENSION hstore; 1.1.3 Optional dependencies Note: To use Peewee, you typically won’t need anything the database that will store our data. This will create the tables with the appropriate columns, indexes, sequences, and foreign key constraints: db.create_tables([Person, Pet]) 1.2.2 Storing data Let’s0 码力 | 282 页 | 1.02 MB | 1 年前3
共 16 条
- 1
- 2













