MCPcopy
hub / github.com/django/django / DatabaseWrapper

Class DatabaseWrapper

django/db/backends/dummy/base.py:53–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53class DatabaseWrapper(BaseDatabaseWrapper):
54 operators = {}
55 # Override the base class implementations with null
56 # implementations. Anything that tries to actually
57 # do something raises complain; anything that tries
58 # to rollback or undo something raises ignore.
59 _cursor = complain
60 ensure_connection = complain
61 _commit = complain
62 _rollback = ignore
63 _close = ignore
64 _savepoint = ignore
65 _savepoint_commit = complain
66 _savepoint_rollback = ignore
67 _set_autocommit = complain
68 # Classes instantiated in __init__().
69 client_class = DatabaseClient
70 creation_class = DatabaseCreation
71 features_class = DummyDatabaseFeatures
72 introspection_class = DatabaseIntrospection
73 ops_class = DatabaseOperations
74
75 def is_usable(self):
76 return True

Calls

no outgoing calls