peewee Documentation Release 3.0.0begin working with the data, we’ll define the model classes that correspond to the tables in the diagram. Note In some cases we explicitly specify column names for a particular field. This is so our models MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive table constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] sequence = None – sequence to populate field (if backend supports it) collation = None – collation to use for ordering0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive key for the table constraints = None - one or more constraints, e.g. [Check('price > 0')] sequence = None – sequence name (if backend supports it) collation = None – collation to use for ordering the field dest_table='entry', dest_column='id', table='entrytag'), ...] sequence_exists(seq) seq (str) – Name of sequence. Whether sequence exists. bool create_tables(models[, **options]) models (list) –0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0begin working with the data, we’ll define the model classes that correspond to the tables in the diagram. Note In some cases we explicitly specify column names for a particular field. This is so our models MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive table constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] sequence = None – sequence to populate field (if backend supports it) collation = None – collation to use for ordering0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0begin working with the data, we’ll define the model classes that correspond to the tables in the diagram. Note In some cases we explicitly specify column names for a particular field. This is so our models MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive table constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] sequence = None – sequence to populate field (if backend supports it) collation = None – collation to use for ordering0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0filename, fn.MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive the table • constraints = None - one or more constraints, e.g. [Check('price > 0')] • sequence = None – sequence name (if backend supports it) • collation = None – collation to use for ordering the field dest_table='entry', dest_column='id', table='entrytag'), ...] sequence_exists(seq) Parameters seq (str) – Name of sequence. Returns Whether sequence exists. Return type bool create_tables(models[, **options])0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0begin working with the data, we’ll define the model classes that correspond to the tables in the diagram. Note: In some cases we explicitly specify column names for a particular field. This is so our models filename, fn.MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive [Check('price > 0')] 64 Chapter 1. Contents: peewee Documentation, Release 3.3.0 • sequence = None – sequence to populate field (if backend supports it) • collation = None – collation to use for ordering0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0begin working with the data, we’ll define the model classes that correspond to the tables in the diagram. Note: In some cases we explicitly specify column names for a particular field. This is so our models filename, fn.MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive • constraints = None - a list of one or more constraints, e.g. [Check('price > 0')] • sequence = None – sequence to populate field (if backend supports it) • collation = None – collation to use for ordering0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive key for the table constraints = None - one or more constraints, e.g. [Check('price > 0')] sequence = None – sequence name (if backend supports it) collation = None – collation to use for ordering the field name='entries_public', sql='CREATE VIEW entries_public AS SELECT ... '), ...] sequence_exists(seq) seq (str) – Name of sequence. Whether sequence exists. bool create_tables(models[, **options]) models (list) –0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0filename, fn.MD5(FileChunk.data)) .group_by(FileChunk.filename) .order_by(FileChunk.filename, FileChunk.sequence)) Example collation: @db.collation('ireverse') def collate_reverse(s1, s2): # Case-insensitive the table • constraints = None - one or more constraints, e.g. [Check('price > 0')] • sequence = None – sequence name (if backend supports it) • collation = None – collation to use for ordering the field sql='CREATE VIEW entries_public AS SELECT ... '), ...] sequence_exists(seq) Parameters seq (str) – Name of sequence. Returns Whether sequence exists. Return type bool create_tables(models[, **options])0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 0.9.7of the database table this model maps to ordering: a sequence of columns to use as the default ordering for this model pk_sequence: name of sequence to create for the primary key (peewee will autogenerate create_sequence(sequence_name) Parameters: sequence_name – name of sequence to create Note only works with database engines that support sequences drop_sequence(sequence_name) Parameters: sequence_name sequence_name – name of sequence to drop Note only works with database engines that support sequences get_indexes_for_table(table) Parameters: table – the name of table to introspect Return type: a list of (index_name0 码力 | 78 页 | 143.68 KB | 1 年前3
共 16 条
- 1
- 2













