peewee Documentation
Release 2.10.2Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 1.7 Models and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy to do with peewee: class Pet(Model): owner = ForeignKeyField(Person CharField() class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 2.10.2configuration Dynamically defining a database Connection Pooling Read Slaves Schema migrations Generating Models from Existing Databases Adding Request Hooks Additional connection initialization Advanced Connection Errors Automatic Reconnect Logging queries Generating skeleton code Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints Reflection Database URL CSV Utils Connection pool Read Slaves Test Utils pskel Flask Utils API Reference Models Fields Query Types Database and its subclasses Transaction, Savepoint and ExecutionContext Metadata0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 3.6.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 1.6 Models and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . source code hosted on GitHub. New to peewee? These may help: • Quickstart • Example twitter app • Models and fields • Querying • Relationships and joins Contents 1 peewee Documentation, Release 3.6 in your code without having to worry. Things get interesting when we set up relationships between models using foreign key relationships. This is simple with peewee: class Pet(Model): owner = ForeignKeyField(Person0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 1.6 Models and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy to do with peewee: class Pet(Model): owner = ForeignKeyField(Person CharField() class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.7 Models and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy to do with peewee: class Pet(Model): owner = ForeignKeyField(Person CharField() class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 1.7 Models and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy to do with peewee: class Pet(Model): owner = ForeignKeyField(Person CharField() class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0[https://github.com/coleifer/peewee]. New to peewee? These may help: Quickstart Example twitter app Models and fields Querying Relationships and joins Contents: Installing and Testing Installing with git Executing Queries Managing Transactions Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints in your code without having to worry. Things get interesting when we set up relationships between models using foreign key relationships. This is simple with peewee: class Pet(Model): owner = ForeignKeyField(Person0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.5.0Executing Queries Managing Transactions Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia.org/wiki/Foreign_key]. This is easy to do with class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0Executing Queries Managing Transactions Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Field-naming conflicts Creating model tables Model options and table metadata in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia.org/wiki/Foreign_key]. This is easy to do with class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0Executing Queries Managing Transactions Database Errors Logging queries Adding a new Database Driver Models and Fields Fields Creating model tables Model options and table metadata Indexes and Constraints in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia.org/wiki/Foreign_key]. This is easy to do with class Meta: database = db # this model uses the "people.db" database Now that we have our models, let’s connect to the database. Although it’s not necessary to open the connection explicitly, it0 码力 | 332 页 | 370.77 KB | 1 年前3
共 16 条
- 1
- 2













