Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ cursor
Method
cursor
django/db/backends/base/base.py:318–320 ·
view source on GitHub ↗
Create a cursor, opening a connection if necessary.
(self)
Source
from the content-addressed store, hash-verified
316
317
@async_unsafe
318
def
cursor(self):
319
""
"Create a cursor, opening a connection if necessary."
""
320
return
self._cursor()
321
322
@async_unsafe
323
def
commit(self):
Callers
15
_savepoint
Method · 0.95
_savepoint_rollback
Method · 0.95
_savepoint_commit
Method · 0.95
chunked_cursor
Method · 0.95
temporary_connection
Method · 0.95
create_default_site
Function · 0.80
extension_exists
Method · 0.80
get_type_oids
Function · 0.80
get_geometry_type
Method · 0.80
_field_indexes_sql
Method · 0.80
get_geometry_type
Method · 0.80
prepare_database
Method · 0.80
Calls
1
_cursor
Method · 0.95
Tested by
15
_reset_sequences
Method · 0.64
drop_table
Method · 0.64
test_concurrent_delete
Method · 0.64
get_constraints
Function · 0.64
test_initially_deferred_database_constraint
Method · 0.64
test_initially_immediate_database_constraint
Method · 0.64
make_configuration_query
Method · 0.64
test_allowed_database_copy_queries
Method · 0.64
test_handle_db_exception
Method · 0.64
get_primary_key_columns
Method · 0.64
has_spatial_indexes
Method · 0.64
get_table_description
Method · 0.64