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.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 update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 349 页 | 382.34 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 update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 347 页 | 380.80 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. checksum.update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in raise StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 284 页 | 1.03 MB | 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 checksum.update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in raise StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 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. checksum.update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in raise StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 280 页 | 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 update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 332 页 | 370.77 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 update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 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 checksum.update(value.encode('utf-8')) def finalize(self): return self.checksum.hexdigest() # Usage: # The following computes an aggregate MD5 checksum for files broken # up into chunks and stored in raise StopIteration ret, self.current = self.current, self.current + self.step return (ret,) # Usage: cursor = db.execute_sql('SELECT * FROM series(?, ?, ?)', (0, 5, 2)) for value, in cursor: print(value)0 码力 | 302 页 | 1.02 MB | 1 年前3
共 16 条
- 1
- 2













