peewee Documentation Release 2.0.2
its just fields - and they’re hopefully a bit smaller and saner. I also cleaned up the primary key business. Basically it works like this: • if you don’t specify a primary key, one will be created named # when you’re ready to start querying, remember to connect mysql_db.connect() Multi-threaded applications Some database engines may not allow a connection to be shared across threads, notably sqlite ASC Creating new objects So what happens when a new user wants to join the site? Looking at the business end of the join() view, we can that it does a quick check to see if the username is taken, and if0 码力 | 65 页 | 315.33 KB | 1 年前3peewee Documentation Release 0.9.7
# when you're ready to start querying, remember to connect mysql_db.connect() Multi-threaded applications Some database engines may not allow a connection to be shared across threads, notably sqlite ASC Creating new objects So what happens when a new user wants to join the site? Looking at the business end of the join() view, we can that it does a quick check to see if the username is taken, and if0 码力 | 78 页 | 143.68 KB | 1 年前3peewee Documentation Release 0.9.7
# when you’re ready to start querying, remember to connect mysql_db.connect() Multi-threaded applications Some database engines may not allow a connection to be shared across threads, notably sqlite 7 Creating new objects So what happens when a new user wants to join the site? Looking at the business end of the join() view, we can that it does a quick check to see if the username is taken, and if0 码力 | 53 页 | 347.03 KB | 1 年前3peewee Documentation Release 1.0.0
# when you're ready to start querying, remember to connect mysql_db.connect() Multi-threaded applications Some database engines may not allow a connection to be shared across threads, notably sqlite ASC Creating new objects So what happens when a new user wants to join the site? Looking at the business end of the join() view, we can that it does a quick check to see if the username is taken, and if0 码力 | 101 页 | 163.20 KB | 1 年前3peewee Documentation Release 1.0.0
# when you’re ready to start querying, remember to connect mysql_db.connect() Multi-threaded applications Some database engines may not allow a connection to be shared across threads, notably sqlite ASC Creating new objects So what happens when a new user wants to join the site? Looking at the business end of the join() view, we can that it does a quick check to see if the username is taken, and if0 码力 | 71 页 | 405.29 KB | 1 年前3peewee Documentation Release 2.10.2
Postgresql Using SQLite Using BerkeleyDB Using MySQL Connecting using a Database URL Multi-threaded applications Run-time database configuration Dynamically defining a database Connection Pooling Read Slaves written a number of blog posts about building applications and web-services with peewee (and usually Flask). If you’d like to see some “real-life” applications that use peewee, the following resources may for the local MySQL database my_db. More examples in the db_url documentation. Multi-threaded applications peewee stores the connection state in a thread local, so each thread gets its own separate connection0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
written a number of blog posts about building applications and web-services with peewee (and usually Flask). If you’d like to see some “real-life” applications that use peewee, the following resources may local MySQL database my_db. • More examples in the db_url documentation. 1.6.7 Multi-threaded applications peewee stores the connection state in a thread local, so each thread gets its own separate connection resolve any circular references that were found. 1.6.14 Adding Request Hooks When building web-applications, it is very important that you manage your database connections correctly. In this section I will0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.5.0
configuration Dynamically defining a database Connection Management Connection Pooling Testing Peewee Applications Async with Gevent Framework Integration Executing Queries Managing Transactions Database Errors connection pool, 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 Async has no effect one way or the other on SQLite databases. Framework Integration For web applications, it is common to open a connection when a request is received, and to close the connection when0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.4.0
configuration Dynamically defining a database Connection Management Connection Pooling Testing Peewee Applications Async with Gevent Framework Integration Executing Queries Managing Transactions Database Errors connection pool, 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 Async has no effect one way or the other on SQLite databases. Framework Integration For web applications, it is common to open a connection when a request is received, and to close the connection when0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
configuration Dynamically defining a database Connection Management Connection Pooling Testing Peewee Applications Framework Integration Executing Queries Managing Transactions Database Errors Logging queries connection pool, 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 test-suite [https://github.com/coleifer/peewee/tree/master/tests]. Framework Integration For web applications, it is common to open a connection when a request is received, and to close the connection when0 码力 | 332 页 | 370.77 KB | 1 年前3
共 16 条
- 1
- 2