peewee Documentation Release 2.10.2
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string :memory: to create an in-memory database. After the database filename, you can specify arbitrary sqlite3 parameters provides special features like: Virtual tables, virtual file-systems, Blob I/O, backups and file control. Connections can be shared across threads without any additional locking. Transactions are managed0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string :memory: to create an in-memory database. After the database filename, you can specify arbitrary sqlite3 parameters. provides special features like: • Virtual tables, virtual file-systems, Blob I/O, backups and file control. 1.6. Managing your Database 21 peewee Documentation, Release 2.10.2 • Connections can be shared0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 3.5.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string ':memory:' to create an in- memory database. After the database filename, you can specify a list or pragmas or any other provides special features like: Virtual tables, virtual file-systems, Blob I/O, backups and file control. Connections can be shared across threads without any additional locking. Transactions are managed0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.5.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string ':memory:' to create an in-memory database. After the database filename, you can specify a list or pragmas or any other provides special features like: • Virtual tables, virtual file-systems, Blob I/O, backups and file control. • Connections can be shared across threads without any additional locking. • Transactions are0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.6.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string ':memory:' to create an in- memory database. After the database filename, you can specify a list or pragmas or any other provides special features like: Virtual tables, virtual file-systems, Blob I/O, backups and file control. Connections can be shared across threads without any additional locking. Transactions are managed0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database SqliteDatabase. The first parameter is the filename containing the database, or the string ':memory:' to create an in-memory database. After the database filename, you can specify a list or pragmas or any other provides special features like: • Virtual tables, virtual file-systems, Blob I/O, backups and file control. • Connections can be shared across threads without any additional locking. • Transactions are0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database select(Facility.name, Facility.membercost) # To iterate: for facility in query: print(facility.name) Control which rows are retrieved Retrieve list of facilities that have a cost to members. SELECT * FROM FROM facilities WHERE membercost > 0 query = Facility.select().where(Facility.membercost > 0) Control which rows are retrieved - part 2 Retrieve list of facilities that have a cost to members, and that0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.4.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database select(Facility.name, Facility.membercost) # To iterate: for facility in query: print(facility.name) Control which rows are retrieved Retrieve list of facilities that have a cost to members. SELECT * FROM FROM facilities WHERE membercost > 0 query = Facility.select().where(Facility.membercost > 0) Control which rows are retrieved - part 2 Retrieve list of facilities that have a cost to members, and that0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.3.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database select(Facility.name, Facility.membercost) # To iterate: for facility in query: print(facility.name) Control which rows are retrieved Retrieve list of facilities that have a cost to members. SELECT * FROM FROM facilities WHERE membercost > 0 query = Facility.select().where(Facility.membercost > 0) Control which rows are retrieved - part 2 Retrieve list of facilities that have a cost to members, and that0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.0.0
every model to specify which database it uses. There are many Meta options you can specify which control the behavior of your model. This is a peewee idiom: DATABASE = 'tweepee.db' # Create a database select(Facility.name, Facility.membercost) # To iterate: for facility in query: print(facility.name) Control which rows are retrieved Retrieve list of facilities that have a cost to members. SELECT * FROM FROM facilities WHERE membercost > 0 query = Facility.select().where(Facility.membercost > 0) Control which rows are retrieved - part 2 Retrieve list of facilities that have a cost to members, and that0 码力 | 319 页 | 361.50 KB | 1 年前3
共 16 条
- 1
- 2