peewee Documentation Release 2.10.2
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return net/MySQLdb.html#some-mysql-examples] MySQL: pymysql [https://github.com/PyMySQL/PyMySQL/blob/f08f01fe8a59e8acfb5f5add4a8fe874bec2a196/pymysql/co nnections.py#L494-L513] SQLite: sqlite3 [https://docs.python type object 'Person' has no attribute 'Meta' >>> Person._metaf51a2f03790> The ModelOptions class implements several methods which may be of use for retrieving model 0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 3.4.0
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema using Peewee, without loading the sample data ' ' || m.surname AS member, f.name AS facility FROM members AS m INNER JOIN bookings AS b ON (m.memid = b.memid) INNER JOIN facilities AS f ON (b.facid = f.facid) WHERE f.name LIKE 'Tennis%' ORDER BY0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.5.0
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return net/MySQLdb.html#some-mysql-examples] MySQL: pymysql [https://github.com/PyMySQL/PyMySQL/blob/f08f01fe8a59e8acfb5f5add4a8fe874bec2a196/pymysql/co nnections.py#L494-L513] SQLite: sqlite3 [https://docs.python otherwise it will open a new connection. >>> db.connection()f94e9362f10> Connection Pooling Connection pooling is provided by the pool module, included in the playhouse 0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.0.0
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema using Peewee, without loading the sample data ' ' || m.surname AS member, f.name AS facility FROM members AS m INNER JOIN bookings AS b ON (m.memid = b.memid) INNER JOIN facilities AS f ON (b.facid = f.facid) WHERE f.name LIKE 'Tennis%' ORDER BY0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.1.0
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema using Peewee, without loading the sample data ' ' || m.surname AS member, f.name AS facility FROM members AS m INNER JOIN bookings AS b ON (m.memid = b.memid) INNER JOIN facilities AS f ON (b.facid = f.facid) WHERE f.name LIKE 'Tennis%' ORDER BY0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 2.10.2
login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) 1.3. Example app 15 peewee Documentation, Release 2.10.2 return f(*args, **kwargs) type object 'Person' has no attribute 'Meta' >>> Person._metaf51a2f03790> The ModelOptions class implements several methods which may be of use for retrieving model f51a2e92750>, 'name': f51a2f0a510>} >>> Person._meta.primary_key f51a2e92750> >>> Person._meta.database 0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.3.0
% (user.username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return inner • Return data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema using Peewee, without loading the sample data || ' ' || m.surname AS member, f.name AS facility FROM members AS m INNER JOIN bookings AS b ON (m.memid = b.memid) INNER JOIN facilities AS f ON (b.facid = f.facid) WHERE f.name LIKE 'Tennis%' ORDER BY0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
% (user.username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return inner • Return data into a PostgreSQL database using the following commands: createdb peewee_test psql -U postgres -f clubdata.sql -d peewee_test -x -q To create the schema using Peewee, without loading the sample data || ' ' || m.surname AS member, f.name AS facility FROM members AS m INNER JOIN bookings AS b ON (m.memid = b.memid) INNER JOIN facilities AS f ON (b.facid = f.facid) WHERE f.name LIKE 'Tennis%' ORDER BY0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.5.0
% (user.username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return inner • Return otherwise it will open a new connection. >>> db.connection()f94e9362f10> 1.5.9 Connection Pooling Connection pooling is provided by the pool module, included in the type object 'Person' has no attribute 'Meta' >>> Person._meta f51a2f03790> The ModelOptions class implements several methods which may be of use for retrieving model 0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.6.0
username)) def login_required(f): @wraps(f) def inner(*args, **kwargs): if not session.get('logged_in'): return redirect(url_for('login')) return f(*args, **kwargs) return net/MySQLdb.html#some-mysql-examples] MySQL: pymysql [https://github.com/PyMySQL/PyMySQL/blob/f08f01fe8a59e8acfb5f5add4a8fe874bec2a196/pymysql/co nnections.py#L494-L513] SQLite: sqlite3 [https://docs.python otherwise it will open a new connection. >>> db.connection()f94e9362f10> Connection Pooling Connection pooling is provided by the pool module, included in the playhouse 0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2