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
peewee Documentation Release 1.0.0to indexes: a list of fields to index 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 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 0.9.7the 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 46 Chapter 1. Contents: peewee0 码力 | 53 页 | 347.03 KB | 1 年前3
peewee Documentation
Release 2.0.2name of the database table this model maps to • indexes: a list of fields to index • order_by: a sequence of columns to use as the default ordering for this model Specifying indexes: class Transaction(Model): display • primary_key = False – whether this field is the primary key for the table • sequence = None – sequence to populate field (if backend supports it) Field Type Sqlite Postgresql MySQL CharField display • primary_key (boolean) – whether to use this as the primary key for the table • sequence – name of sequence (if backend supports it) db_value(value) Parameters value – python data type to prep0 码力 | 65 页 | 315.33 KB | 1 年前3
peewee Documentation
Release 1.0.0• indexes: a list of fields to index • 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 52 Chapter 1. Contents: peewee Documentation, Release 1.0.0 get_indexes_for_table(table) Parameters table0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation Release 3.0.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 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 ordering 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 码力 | 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.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 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 ordering 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 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.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 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 ordering 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 码力 | 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
共 16 条
- 1
- 2













