peewee Documentation Release 3.6.0
your model class. The way the table-name is generated depends on the value of Meta.legacy_table_names. By default, legacy_table_names=True so as to avoid breaking backwards-compatibility. However, if you can specify legacy_table_names=False. This table shows the differences in how a model name is converted to a SQL table name, depending on the value of legacy_table_names: Model name legacy_table_names=True legacy_table_names=True legacy_table_names=False (new) User user user UserProfile userprofile user_profile APIResponse apiresponse api_response WebHTTPRequest webhttprequest web_http_request mixedCamelCase mixedcamelcase0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
your model class. The way the table-name is generated depends on the value of Meta.legacy_table_names. By default, legacy_table_names=True so as to avoid breaking backwards-compatibility. However, if you can specify legacy_table_names=False. This table shows the differences in how a model name is converted to a SQL table name, depending on the value of legacy_table_names: Model name legacy_table_names=True legacy_table_names=True legacy_table_names=False (new) User user user UserProfile userprofile user_profile APIResponse apiresponse api_response WebHTTPRequest webhttprequest web_http_request mixedCamelCase mixedcamelcase0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 0.9.7
field db_column = None – string representing the underlying column to use if different, useful for legacy databases Field Type Sqlite Postgresql MySQL CharField varchar varchar varchar TextField text0 码力 | 78 页 | 143.68 KB | 1 年前3peewee Documentation Release 0.9.7
field • db_column = None – string representing the underlying column to use if different, useful for legacy databases Field Type Sqlite Postgresql MySQL CharField varchar varchar varchar TextField text0 码力 | 53 页 | 347.03 KB | 1 年前3peewee Documentation Release 2.10.2
field db_column = None – string representing the underlying column to use if different, useful for legacy databases default = None – any value to use as a default for uninitialized models; If callable, will field db_column (string) – column name to use for underlying storage, useful for compatibility with legacy databases default – a value to use as an uninitialized default choices – an iterable of 2-tuples0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 2.10.2
field • db_column = None – string representing the underlying column to use if different, useful for legacy databases • default = None – any value to use as a default for uninitialized models; If callable • db_column (string) – column name to use for underlying storage, useful for compati- bility with legacy databases • default – a value to use as an uninitialized default • choices – an iterable of 2-tuples0 码力 | 221 页 | 844.06 KB | 1 年前3peewee Documentation Release 2.0.2
field • db_column = None – string representing the underlying column to use if different, useful for legacy databases • default = None – any value to use as a default for uninitialized models • choices =0 码力 | 65 页 | 315.33 KB | 1 年前3peewee Documentation Release 1.0.0
field db_column = None – string representing the underlying column to use if different, useful for legacy databases default = None – any value to use as a default for uninitialized models choices = None0 码力 | 101 页 | 163.20 KB | 1 年前3peewee Documentation Release 1.0.0
field • db_column = None – string representing the underlying column to use if different, useful for legacy databases • default = None – any value to use as a default for uninitialized models • choices =0 码力 | 71 页 | 405.29 KB | 1 年前3peewee Documentation Release 3.0.0
indexes. column_name = None – string representing the underlying column to use if different, useful for legacy databases default = None – any value to use as a default for uninitialized models; If callable, will0 码力 | 319 页 | 361.50 KB | 1 年前3
共 14 条
- 1
- 2