peewee Documentation Release 1.0.0evaluation QueryResultWrapper SelectQuery UpdateQuery DeleteQuery InsertQuery RawQuery Databases Writing a database driver Database and its subclasses BaseAdapter and its subclasses Playhouse, a collection methods of querying. Why? peewee began when I was working on a small app in flask and found myself writing lots of queries and wanting a very simple abstraction on top of the sql. I had so much fun working BaseAdapter will be of interest to anyone interested in adding support for another database driver. Writing a database driver Peewee currently supports Sqlite, MySQL and Postgresql. These databases are very0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation Release 2.10.2ExecutionContext Metadata Types Misc Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd behavior, or have an idea for a new skeleton code For writing quick scripts, peewee comes with a helper script pskel which generates database connection and model boilerplate code. If you find yourself frequently writing small programs, pskel parameters passed in by the user will be escaped. The only exception to this rule is if you are writing a raw SQL query or are passing in a SQL object which may contain untrusted data. To mitigate this0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation Release 3.6.0queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Changes in 3.0 Backwards-incompatible New stuff Note If you find see the Connection pool section of the playhouse documentation. Testing Peewee Applications When writing tests for an application that uses Peewee, it may be desirable to use a special database for tests you want to send each user an email letting them know their account was deactivated. Rather than writing two queries, a SELECT and an UPDATE, you can do this in a single UPDATE query with a RETURNING clause:0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 2.10.2skeleton code For writing quick scripts, peewee comes with a helper script pskel which generates database connection and model boilerplate code. If you find yourself frequently writing small programs, pskel parameters passed in by the user will be escaped. The only exception to this rule is if you are writing a raw SQL query or are passing in a SQL object which may contain untrusted data. To mitigate this you want to send each user an email letting them know their account was deactivated. Rather than writing two queries, a SELECT and an UPDATE, you can do this in a single UPDATE query with a RETURNING clause:0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation
Release 3.6.0Connection pool section of the playhouse documen- tation. 1.5.10 Testing Peewee Applications When writing tests for an application that uses Peewee, it may be desirable to use a special database for tests you want to send each user an email letting them know their account was deactivated. Rather than writing two queries, a SELECT and an UPDATE, you can do this in a single UPDATE query with a RETURNING clause: out a common subquery. • Grouping or filtering by a column derived in the CTE’s result set. • Writing recursive queries. To declare a Select query for use as a CTE, use cte() method, which wraps the0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 1.0.0querying. 1.1.1 Why? peewee began when I was working on a small app in flask and found myself writing lots of queries and wanting a very simple abstraction on top of the sql. I had so much fun working BaseAdapter will be of interest to anyone interested in adding support for another database driver. 1.8.1 Writing a database driver Peewee currently supports Sqlite, MySQL and Postgresql. These databases are very further abstracted out to add support for drivers that don’t conform to the spec. Getting down to it, writing some classes There are two classes you will want to implement at the very least: • BaseAdapter0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation
Release 3.5.0queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Changes in 3.0 Backwards-incompatible New stuff Note If you find see the Connection pool section of the playhouse documentation. Testing Peewee Applications When writing tests for an application that uses Peewee, it may be desirable to use a special database for tests you want to send each user an email letting them know their account was deactivated. Rather than writing two queries, a SELECT and an UPDATE, you can do this in a single UPDATE query with a RETURNING clause:0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd behavior, or have an idea for a new see the Connection pool section of the playhouse documentation. Testing Peewee Applications When writing tests for an application that uses Peewee, it may be desirable to use a special database for tests parameters passed in by the user will be escaped. The only exception to this rule is if you are writing a raw SQL query or are passing in a SQL object which may contain untrusted data. To mitigate this0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd behavior, or have an idea for a new see the Connection pool section of the playhouse documentation. Testing Peewee Applications When writing tests for an application that uses Peewee, it may be desirable to use a special database for tests parameters passed in by the user will be escaped. The only exception to this rule is if you are writing a raw SQL query or are passing in a SQL object which may contain untrusted data. To mitigate this0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 3.0.0queries Delete queries More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd behavior, or have an idea for a new parameters passed in by the user will be escaped. The only exception to this rule is if you are writing a raw SQL query or are passing in a SQL object which may contain untrusted data. To mitigate this you want to send each user an email letting them know their account was deactivated. Rather than writing two queries, a SELECT and an UPDATE, you can do this in a single UPDATE query with a RETURNING clause:0 码力 | 319 页 | 361.50 KB | 1 年前3
共 16 条
- 1
- 2













