peewee Documentation
Release 2.0.2support for some extensions, like hstore For flask integration, including an admin interface and RESTful API, check out flask-peewee. See notes on notes on upgrading and changes from 1.0 Contents 1 peewee with the project. 1.3 Upgrading peewee Peewee went from 2319 SLOC to 1666. 1.3.1 Goals for the new API • consistent: there is one way of doing things • expressive: things can be done that I never thought absolute last second. With 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 least0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation
Release 1.0.0extensions like hstore and full-text search For flask integration, including an admin interface and RESTful API, check out flask-peewee. CONTENTS 1 peewee Documentation, Release 1.0.0 2 CONTENTS CHAPTER WHERE "id" = ? LIMIT 1 PARAMS: [1000] For more information see notes on SelectQuery and Querying API in general. 8 Chapter 1. Contents: peewee Documentation, Release 1.0.0 Selecting multiple records - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. 1.5 Model API (smells like django) Models and their fields map directly to database0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation Release 1.0.0org/en/latest/peewee/playhouse.html#full-text-search] For flask integration, including an admin interface and RESTful API, check out flask-peewee [https://github.com/coleifer/flask-peewee/]. Contents: Overview Why Introspecting databases Schema migrations Example app Running the example Diving into the code Model API (smells like django) Creating tables Model instances Model options Model methods Fields Field types Self-referential Foreign Keys Implementing Many to Many Non-integer Primary Keys Field class API Querying API Constructing queries Where clause Performing advanced queries Query evaluation QueryResultWrapper0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 0.9.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 1.5 Model API (smells like django) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 1.7 Querying API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 1 WHERE "id" = ? LIMIT 1 PARAMS: [1000] For more information see notes on SelectQuery and Querying API in general. Selecting multiple records To simply get all instances in a table, call the Model.select()0 码力 | 53 页 | 347.03 KB | 1 年前3
peewee Documentation Release 0.9.7code Model API (smells like django) Creating tables Model instances Model options Model methods Fields Field types table Self-referential Foreign Keys Implementing Many to Many Field class API Querying Querying API Constructing queries Where clause Performing advanced queries Query evaluation QueryResultWrapper SelectQuery UpdateQuery DeleteQuery InsertQuery RawQuery Databases Database and its subclasses WHERE "id" = ? LIMIT 1 PARAMS: [1000] For more information see notes on SelectQuery and Querying API in general. Selecting multiple records To simply get all instances in a table, call the Model.select()0 码力 | 78 页 | 143.68 KB | 1 年前3
peewee Documentation
Release 2.10.2extensions to Peewee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 1.14 API Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . running import sqlite3 in the Python console. If you wish to use another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. in more? Check out flask-peewee - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. 1.4 Additional Resources I’ve written a number0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 2.10.2Migrations 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 running import sqlite3 in the Python console. If you wish to use another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. [https://github.com/coleifer/flask-peewee] - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. Additional Resources I’ve written a number of0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation Release 3.0.0Transactions Explicit transaction Autocommit Mode Changes in 3.0 Backwards-incompatible New stuff API Documentation Database Query-builder Fields Schema Manager Model Query-builder Internals Constants running import sqlite3 in the Python console. If you wish to use another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. [https://github.com/coleifer/flask-peewee] - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. Contributing In order to continually improve0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 1.9 API Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . running import sqlite3 in the Python console. If you wish to use another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. in more? Check out flask-peewee - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. 1.4 Contributing In order to continually improve0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 1.14 API Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . running import sqlite3 in the Python console. If you wish to use another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. in more? Check out flask-peewee - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee models. 1.3. Example app 17 peewee Documentation, Release0 码力 | 284 页 | 1.03 MB | 1 年前3
共 16 条
- 1
- 2













