peewee Documentation Release 1.0.0special extensions like hstore [http://peewee.readthedocs.org/en/latest/peewee/playhouse.html#postgresql-extensions-hstore-ltree] and full-text search [http://peewee.readthedocs.org/en/latest/peewee/playhouse BaseAdapter and its subclasses Playhouse, a collection of addons apsw, an advanced sqlite driver Postgresql Extensions (hstore, ltree) pwiz, a model generator Signal support Sqlite Extensions Swee’pea, syntactic class), otherwise peewee will fall back to a default sqlite database named “peewee.db”. Using with Postgresql Point models at an instance of PostgresqlDatabase. psql_db = peewee.PostgresqlDatabase('my_database'0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 2.0.2class), otherwise peewee will fall back to a default sqlite database named “peewee.db”. Using with Postgresql Point models at an instance of PostgresqlDatabase. psql_db = PostgresqlDatabase(’my_database’ ’, user=’code’) class PostgresqlModel(Model): """A base model that will use our Postgresql database""" class Meta: database = psql_db class User(PostgresqlModel): username = CharField() # etc, etc introspection tool “pwiz” that comes with peewee. Usage: python pwiz.py my_postgresql_database It works with postgresql, mysql and sqlite: python pwiz.py test.db --engine=sqlite pwiz will generate0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation
Release 1.0.0class), otherwise peewee will fall back to a default sqlite database named “peewee.db”. Using with Postgresql Point models at an instance of PostgresqlDatabase. psql_db = peewee.PostgresqlDatabase(’my_database’ tabase’, user=’code’) class PostgresqlModel(peewee.Model): """A base model that will use our Postgresql database""" class Meta: database = psql_db class Blog(PostgresqlModel): creator = peewee.CharField() introspection tool “pwiz” that comes with peewee. Usage: python pwiz.py my_postgresql_database It works with postgresql, mysql and sqlite: python pwiz.py test.db --engine=sqlite pwiz will generate0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation Release 0.9.7CharField() name = peewee.TextField() class Entry(CustomModel): # etc, etc Using with Postgresql Point models at an instance of PostgresqlDatabase. psql_db = peewee.PostgresqlDatabase('my_database' introspection tool “pwiz” that comes with peewee. Usage: python pwiz.py my_postgresql_database It works with postgresql, mysql and sqlite: python pwiz.py test.db --engine=sqlite pwiz will generate interested in more? Check out flask-peewee [https://github.com/coleifer/flask-peewee] - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee0 码力 | 78 页 | 143.68 KB | 1 年前3
peewee Documentation
Release 0.9.7peewee.CharField() name = peewee.TextField() class Entry(CustomModel): # etc, etc Using with Postgresql Point models at an instance of PostgresqlDatabase. psql_db = peewee.PostgresqlDatabase(’my_database’ introspection tool “pwiz” that comes with peewee. Usage: python pwiz.py my_postgresql_database It works with postgresql, mysql and sqlite: 1.3. Peewee Cookbook 13 peewee Documentation, Release 0.9 DoesNotExist: abort(404) Note: Like these snippets and interested in more? Check out flask-peewee - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee0 码力 | 53 页 | 347.03 KB | 1 年前3
peewee Documentation Release 2.10.2Written in python with support for versions 2.6+ and 3.2+. built-in support for sqlite, mysql and postgresql numerous extensions available (postgres hstore/json/arrays, sqlite full-text- search, schema migrations Patches Bugs Questions Managing your Database Creating a database connection and tables Using Postgresql Using SQLite Using BerkeleyDB Using MySQL Connecting using a Database URL Multi-threaded applications Sqlite User-Defined Functions apsw, an advanced sqlite driver BerkeleyDB backend Sqlcipher backend Postgresql Extensions DataSet Django Integration Fields Generic foreign keys Hybrid Attributes Key/Value Store0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2Written in python with support for versions 2.6+ and 3.2+. • built-in support for sqlite, mysql and postgresql • numerous extensions available (postgres hstore/json/arrays, sqlite full-text-search, schema models using pwiz, a model generator. For instance, if I have a postgresql database named charles_blog, I might run: python -m pwiz -e postgresql charles_blog > blog_models.py 1.2.5 What next? That’s it companion blog post. Note: Like these snippets and interested in more? Check out flask-peewee - a flask plugin that provides a django-like Admin interface, RESTful API, Authentication and more for your peewee0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.0.0Written in python with support for versions 2.7+ and 3.2+. Built-in support for SQLite, MySQL and Postgresql. numerous extensions available (postgres hstore/json/arrays, sqlite full-text- search, schema migrations Joins and Subqueries Modifying Data Aggregation Recursion Database Initializing a Database Using Postgresql Using SQLite Using MySQL Connecting using a Database URL Run-time database configuration Dynamically 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 Schema0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.4.0support for versions 2.7+ and 3.4+ (developed with 3.6) Built-in support for SQLite, MySQL and Postgresql. numerous extensions available (postgres hstore/json/arrays, sqlite full-text- search, schema migrations essentials. It will take you between 5 and 10 minutes to go through it. Example queries taken from the PostgreSQL exercises website [https://pgexercises.com]. Guide to the various query operators describes how Joins and Subqueries Modifying Data Aggregation Recursion Database Initializing a Database Using Postgresql Using SQLite Using MySQL Connecting using a Database URL Run-time database configuration Dynamically0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0support for versions 2.7+ and 3.4+ (developed with 3.6) Built-in support for SQLite, MySQL and Postgresql. numerous extensions available (postgres hstore/json/arrays, sqlite full-text- search, schema migrations code More examples Contributing Patches Bugs Questions Database Initializing a Database Using Postgresql Using SQLite Using MySQL Connecting using a Database URL Run-time database configuration Dynamically 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 Signal support0 码力 | 347 页 | 380.80 KB | 1 年前3
共 16 条
- 1
- 2













