peewee Documentation Release 2.10.2to database concepts: Thing Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a person by calling the create() method, which returns a model instance: >>> grandma = Person.create(name='Grandma', birthday=date(1935, 3, 1), is_relative=True) >>>0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2database concepts: Thing Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a person by calling the create() method, which returns a model instance: >>> grandma = Person.create(name='Grandma', birthday=date(1935, 3, 1), is_ ˓→relative=True) >>>0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.4.0to database concepts: Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0to database concepts: Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0database concepts: Object Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0database concepts: Object Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.0.0to database concepts: Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0to database concepts: Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.5.0database concepts: Object Corresponds to. . . Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it modified is returned. You can also add a 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 = Person0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0to database concepts: Object Corresponds to… Model class Database table Field instance Column on a table Model instance Row in a database table When starting a project with peewee, it’s typically best when the first query is executed. It is also good to close the connection when you are done – for instance, a web app might open a connection when it receives a request, and close the connection when it returns a model instance: grandma = Person.create(name='Grandma', birthday=date(1935, 3, 1)) herb = Person.create(name='Herb', birthday=date(1950, 5, 5)) To update a row, modify the model instance and call0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













