peewee Documentation Release 3.4.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. sqlite:///:memory: will create an in-memory SqliteDatabase instance. postgresql://postgres:my_password@localhost:5432/my_database database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.4.0SqliteDatabase. 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. SqliteDatabase instance for the file my_database.db in the cur- rent directory. • sqlite:///:memory: will create an in-memory SqliteDatabase instance. • postgresql://postgres:my_password@localhost:5432/my_database config['DEBUG']: database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the db0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 2.10.2SqliteDatabase. 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 SqliteDatabase, the first parameter is the filename containing the database or the string :memory: to create an in-memory database. from playhouse.berkeleydb import BerkeleyDatabase berkeley_db = BerkeleyDatabase('my_app SqliteDatabase instance for the file my_database.db in the current directory. sqlite:///:memory: will create an in-memory SqliteDatabase instance. postgresql://postgres:my_password@localhost:5432/my_database0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2SqliteDatabase. 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. SqliteDatabase, the first pa- rameter is the filename containing the database or the string :memory: to create an in-memory database. from playhouse.berkeleydb import BerkeleyDatabase berkeley_db = BerkeleyDatabase('my_app SqliteDatabase instance for the file my_database.db in the cur- rent directory. • sqlite:///:memory: will create an in-memory SqliteDatabase instance. • postgresql://postgres:my_password@localhost:5432/my_database0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation
Release 3.5.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. sqlite:///:memory: will create an in-memory SqliteDatabase instance. postgresql://postgres:my_password@localhost:5432/my_database database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.5.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. • sqlite:///:memory: will create an in-memory SqliteDatabase instance. • postgresql://postgres:my_password@localhost:5432/my_database config['DEBUG']: database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the db0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0SqliteDatabase. 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. SqliteDatabase instance for the file my_database.db in the cur- rent directory. • sqlite:///:memory: will create an in-memory SqliteDatabase instance. • postgresql://postgres:my_password@localhost:5432/my_database config['DEBUG']: database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the db0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. sqlite:///:memory: will create an in-memory SqliteDatabase instance. postgresql://postgres:my_password@localhost:5432/my_database database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. • sqlite:///:memory: will create an in-memory SqliteDatabase instance. • postgresql://postgres:my_password@localhost:5432/my_database config['DEBUG']: database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the db0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.1.0SqliteDatabase. 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 SqliteDatabase instance for the file my_database.db in the current directory. sqlite:///:memory: will create an in-memory SqliteDatabase instance. postgresql://postgres:my_password@localhost:5432/my_database database = SqliteDatabase('local.db') elif app.config['TESTING']: database = SqliteDatabase(':memory:') else: database = PostgresqlDatabase('mega_production_db') # Configure our proxy to use the0 码力 | 332 页 | 370.77 KB | 1 年前3
共 16 条
- 1
- 2













