peewee Documentation
Release 1.0.0limit the amount of memory used by peewee when iterating over a lot of rows (i.e. you may be dumping data to csv), use the iterator() method on the QueryResultWrapper. This method allows you to iterate without Simple authentication system with a login_required decorator. The first function simply adds user data into the current session when a user successfully logs in. The decorator login_required can be used field type has a corresponding SQL storage class (i.e. varchar, int), and conversion between python data types and underlying storage is handled transparently. When creating a Model class, fields are defined0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation
Release 2.0.2ways of expressing something. Look at the code for parse_select. I learned a valuable lesson: keep data in datastructures until the absolute last second. With the benefit of hindsight and experience, I first thing I started with is the QueryCompiler and the data structures it uses. You can see it start to take shape in my first commit. It takes the data structures from peewee and spits out SQL. It works recursively limit the amount of memory used by peewee when iterating over a lot of rows (i.e. you may be dumping data to csv), use the iterator() method on the QueryResultWrapper. This method allows you to iterate without0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation Release 2.10.2Installing with git Running tests Optional dependencies Quickstart Model Definition Storing data Retrieving Data Working with existing databases What next? Example app Running the example Diving into the high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating Row in a database table When starting a project with peewee, it’s typically best to begin with your data model, by defining one or more Model classes: from peewee import * db = SqliteDatabase('people.db')0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation Release 3.4.0Optional dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What next? Example app Running the Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Database Initializing a Database Using Postgresql Using SQLite Using MySQL high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0Optional dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What next? Example app Running the Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Query Builder Declaring tables Select queries Insert queries Update queries high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.1.0Installing with git Running tests Optional dependencies Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What next? Example app Running the Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Database Initializing a Database Using Postgresql Using SQLite Using MySQL high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 3.6.0dependencies Skip Compilation of SQLite Extensions Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What next? Example app Running the Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Query Builder Declaring tables Select queries Insert queries Update queries high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 2.10.2Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 2.10.2 • Storing data • Retrieving Data Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating Row in a database table When starting a project with peewee, it’s typically best to begin with your data model, by defining one or more Model classes: from peewee import * db = SqliteDatabase('people.db') class using the singular form. There are lots of field types suitable for storing various types of data. Peewee handles converting between pythonic values those used by the database, so you can use Python0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.0.0Installing with git Running tests Optional dependencies Quickstart Model Definition Storing data Retrieving Data Closing the database Working with existing databases What next? Example app Running the Query Examples Model Definitions Schema Creation Basic Exercises Joins and Subqueries Modifying Data Aggregation Recursion Database Initializing a Database Using Postgresql Using SQLite Using MySQL high-level overview of Peewee’s primary features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 1.0.0Writing a database driver Database and its subclasses BaseAdapter and its subclasses Playhouse, a collection of addons apsw, an advanced sqlite driver Postgresql Extensions (hstore, ltree) pwiz, a model limit the amount of memory used by peewee when iterating over a lot of rows (i.e. you may be dumping data to csv), use the iterator() method on the QueryResultWrapper. This method allows you to iterate without Simple authentication system with a login_required decorator. The first function simply adds user data into the current session when a user successfully logs in. The decorator login_required can be used0 码力 | 101 页 | 163.20 KB | 1 年前3
共 16 条
- 1
- 2













