python django queryset
2021-08-04 14:57:03 0 举报
django queryset 类图
作者其他创作
大纲/内容
DatabaseCreation
+ data_types
+ sql_table_creation_suffix+ sql_indexes_for_field
BaseDatabaseValidation
+ connection
+ validate_field
DeleteQuery
+ compiler
+ do_query+ delete_batch+ delete_qs
UpdateQuery
+ compiler+ values+ related_ids+ related_updates
+ clone+ update_batch+ add_update_values+ add_update_fields+ add_related_update+ get_related_updates
+ connection
QuerySet
+ model+ _db+ query_ _result_cache_ _sticky_filter_ _for_write_ _prefetch_related_loopups_ _prefecth_done_ _known_related_objects
+ iterator()+ aggregate()+ count()+ get()+ create()+ bulk_create()+ get_or_create()+ earliest()+ first()+ last()+ in_bulk()+ delete()+ update()+ values()+ values_list()+ none()+ all()+ filter()+ select_for_update()+ prefecth_related()+ annotate()+ order_by()+ distinct()+ extra()+ reverse()+ defer()+ using()+ only()
CursorWrapper
+ cursor+ db+ __getattr__+ __iter__+ callproc+
+ execute+ executemany+ __getattr__+ __iter__+ execute+ executemany
Query
+ alias_map+ table_map+ join_map+ default_cols+ default_ordering+ used_aliases+ filter_is_sticky+ included_inherited_models+ select+ related_select_cols+ tables+ where+ where_class+ group_by+ having+ order_by+ low_mark+ high_mark+ distinct+ distinct_fields+ select_for_update+ sellect_for_update_nowait+ select_related+ aggregates+ aggregate_select_mark+ max_depth+ extra+ extra_select_mark+ _extra_select_cache+ extra_tables+ extra_order_bt+ defered_loading
+ sql_with_params()+ prepare()+ get_compiler()+ get_meta()+ clone()+ convert_values()+ resolve_aggregate()+ get_aggregate()+ get_count()+ has_results()+ combine()+ deferred_to_data()+ deferred_to_columns_cb()+ table_alias()+ ref_alias()+ unref_alais()+ promote_joins()+ reset_refcounts()+ premot_disjunction()+ change_aliases()+ bump_prefix()+ get_initial_alias()+ count_active_tables()+ join()+ setup_inherited_models()+ join_parent_model()+ remove_inherited_models()+ add_aggregate()+ build_filter()+ add_filter()+ need_having()+ split_having_parts()+ add_q()+ names_to_path()+ setup_joins()+ trim_joins()+ split_exclude()+ set_empty()+ is_empty()+ set_limits()+ can_filter()+ clear_select_clause()+ clear_select_fields()+ add_fileds()+ add_ordering()+ set_group_by()+ add_count_column()+ add_select_related()+ add_extra()+ clear_deferred_loading()+ add_deferred_loading()+ add_immediate_loading()+ get_loaded_field_names()+ get_loaded_field_names_cb()+ set_aggregate_mask()+ set_extra_mask()+ trim_start+ is_nullable
DatabaseClient
+ executable_name
+ runshell
DatabaseOperations
+ date_extract_sql+ date_interval_sql+ date_trunc_sql+ datetime_extract_sql+ datetime_trunc_sql+ deferrable_sql+ lookup_cast+ field_cast_sql+ last_insert_id+ no_limit_value+ quote_name+ set_time_zone_sql+ sql_flush+ sequence_reset_by_name_sql+ tablespace_sql+ sequence_reset_sql+ prep_for_iexact_query+ max_name_length+ distinct_sql+ last_executed_query+ return_insert_id+ bulk_insert_sql
BaseDatabaseWrapper
+ ops+ vendor+ connection+ queries+ settings_dict+ user_debug_cursor+ savepoint_state+ autocommit+ transaction_state+ _dirty+ in_atomic_block+ needs_rollback+ close_at+ closed_in_transaction+ error_occurred+ allow_thread_sharing+ _thread_indent+ allow_thread_sharing+ _thread_ident
+ get_connect_params()+ get_new_connection()+ init_connection_state()+ create_cursour()+ connect()+ commit()+ rollback()+ close()+ savepoint()+ savepoint_rollback()+ savepoint_commit()+ clean_savepoints()+ enter_transaction_managerment()+ leave_transcation_management()+ leave_transaction_management()+ get_autocommit()+ get_rollback()+ set_rollback()+ validate_no_atomic_block()+ abort()+ set_dirty()+ set_clean()+ constraint_checks_disabled()+ disable_constraint_checking()+ enable_constraint_checking()+ checking_constraints()+ is_usable()+ close_if_unusable_or_obsolete()+ validate_thread_sharing()+ make_debug_cursor()+ tempory_connect()
+ sql_table_creation_suffix+ sql_for_inline_foreign_key_references+ sql_destroy_indexes_for_fields
DatabaseIntrospection
+ data_types_reverse
+ get_table_list+ get_table_description+ _name_to_index+ get_relations+ get_key_columns+ get_indexes
postgresql/DatabaseWrapper
+ operators+ features+ ops+ client+ creation+ introspection+ validation+ isolation_level
+ get_connection_params+ get_new_connection+ init_connection_state+ create_cursor+ _set_isolation_level+ _set_autocommit+ check_constraints+ is_usable+ psycopg2_version+ pg_version
DatabaseFeatures
+ empty_fetchmany_value+ needs_datetime_string_cast+ interprets_empty_strings_as_nulls+ uses_savepoints+ has_select_for_update+ has_select_for_update_nowait+ can_return_id_from_insert+ allow_sliced_subqueries+ supports_subqueries_in_group_by+ supports_transactions+ supports_timezones+ has_zoneinfo_database+ supports_bitwise_or+ can_defer_constraint_checks+ ignores_nulls_in_unique_constraints+ has_bulk_insert+ supports_tablespaces+ supports_sequence_reset+ atomic_transactions
+ can_introspect_foreign_keys
DateTimeQuery
+ clone+ _check_field+ _get_select
AggregateQuery
+ add_subquery
DateQuery
+ add_select+ _check_field+ _get_select
BaseDatabaseClient
+ executable_name+ connection
+ compiler_module
+ date_extract_sql+ date_trunc_sql+ datetime_extract_sql+ datetime_trunc_sql+ date_interval_sql+ drop_foreignkey_sql+ force_no_ordering+ fulltext_search_sql+ last_executed_query+ no_limit_value+ quote_name+ random_function_sql+ sql_flush+ sequence_reset_by_name_sql+ validate_autopk_value+ value_to_db_datetime+ value_to_db_time+ year_lookup_bounds_for_datetime_field+ max_name_length+ bulk_insert_sql
ValuesQuerySet
+ aggregate_names+ extra_names+ field_names
+ iterator()+ delete()+ __init__()
DateTimeQuerySet
+ query
+ iterator()
oracle/DatabaseWrapper
+ operators+ features+ ops+ client+ creation+ introspection+ validation+ isolation_level+ _standard_operators+ _likec_operators+
+ get_connection_params+ get_new_connection+ init_connection_state+ create_cursor+ close+ _savepoint_allowed+ _set_autocommit+ check_constraints+ is_usable+ _start_transaction_under_autocommit
myaql/DatabaseWrapper
+ operators+ features+ ops+ client+ creation+ introspection+ validation
+ get_connection_params+ get_new_connection+ init_connection_state+ create_cursor+ _rollback+ _set_autocommit+ disable_constraint_checking+ enable_constraint_checking+ check_constraints+ is_usable+ mysql_version
BaseDatabaseIntrospection
+ data_types_reverse+ connection
+ get_field_type+ table_name_converter+ table_names+ django_table_names+ installed_models+ sequence_list+ get_key_columns+ get_primary_key_column+ get_indexes
+ needs_datetime_string_cast+ can_return_id_from_insert+ requires_rollback_on_dirty_transaction+ has_real_datatype+ can_defer_constraint_checks+ has_select_for_update+ has_select_for_update_nowait+ has_bulk_insert+ uses_savepoints+ supports_tablespaces+ supports_transactions+ can_distinct_on_fields+ can_rollback_ddl
InsertQuery
+ compiler+ fields+ objs
+ clone+ insert_values
DateQuerySet
DatabaseValidation
+ cursor
+ execute+ executemany+ __getattr__+ __iter__
ConnectionHandler
_ _connections_ databases
BaseDatabaseOperations
+ connection+ _cache+ compiler_module
+ autoinc_sql+ bulk_batch_size+ cache_key_culling_sql+ date_extract_sql+ date_interval_sql+ date_trunc_sql+ datetime_cast_sql+ datetime_extract_sql+ datetime_trunc_sql+ distinct_sql+ drop_foreignkey_sql+ drop_sequence_sql+ fetch_returned_insert_id+ field_cast_sql+ force_no_ordering+ for_update_sql+ fulltext_search_sql+ last_executed_query+ last_insert_id+ lookup_cast+ max_in_list_size+ max_name_length+ no_limit_value+ pk_default_value+ process_clob+ return_insert_id+ compiler+ quote_name+ random_function_sql+ regex_lookup+ savepoint_create_sql+ savepoint_commit_sql+ savepoint_rollback_sql+ set_time_zone_sql+ sql_flush+ sequence_reset_by_name_sql+ sequence_reset_sql+ start_transaction_sql+ end_transaction_sql+ tablespace_sql+ prep_for_like_query+ validate_autopk_value+ value_to_db_date+ value_to_db_datetime+ value_to_db_time+ value_to_db_decimal+ year_lookup_bounds_for_date_field+ year_lookup_bounds_for_datetime_field+ convert_values+ check_aggregate_support+ combine_expression+ modify_insert_params
sqlite3/DatabaseWrapper
BaseDatabaseFeatures
+ allows_group_by_pk+ needs_datetime_string_cast+ empty_fetchmany_value+ update_can_self_select+ interprets_empty_strings_as_nulls+ ignores_nulls_in_unique_constraints+ can_use_chunked_reads+ can_return_id_from_insert+ has_bulk_insert+ uses_savepoints+ can_combine_inserts_with_and_without_auto_increment_pk+ related_fields_match_type+ allow_sliced_subqueries+ has_select_for_update+ has_select_for_update_nowait+ supports_select_related+ test_db_allows_multiple_connections+ supports_unspecified_pk+ supports_forward_references+ requires_rollback_on_dirty_transaction+ supports_long_model_names+ has_real_datatype+ supports_subqueries_in_group_by+ supports_bitwise_or+ supports_microsecond_precision+ supports_regex_backreferencing+ supports_date_lookup_using_string+ supports_timezones+ has_zoneinfo_database+ requires_explicit_null_ordering_when_grouping+ supports_1000_query_parameters+ allows_primary_key_0+ can_defer_constraint_checks+ supports_mixed_date_datetime_comparisons+ supports_tablespaces+ supports_sequence_reset+ can_introspect_foreign_keys+ can_distinct_on_fields+ autocommits_when_autocommit_is_off+ atomic_transactions+ supports_paramstyle_pyformat+ can_rollback_ddl+ connection
+ supports_transactions+ supports_stddev
ValuesListQuerySet
收藏
0 条评论
下一页