This module is for subclasses of the generic backend entities that only apply to SQL backends
All SQL backends with an ORM should subclass from the classes in this module
Generic backend related objects
aiida.orm.implementation.sql.backends.
SqlBackend
Bases: typing.Generic, aiida.orm.implementation.backends.Backend
typing.Generic
aiida.orm.implementation.backends.Backend
there is an ORM
that it is possible to convert from ORM model instances to backend instances
that psycopg2 is used as the engine
if any of these assumptions do not fit then just implement a backend from aiida.orm.implementation.Backend
aiida.orm.implementation.Backend
__abstractmethods__
__dict__
__module__
__orig_bases__
__parameters__
__weakref__
list of weak references to the object (if defined)
_abc_impl
cursor
Return a psycopg cursor. This method should be used as a context manager i.e.:
with backend.cursor(): # Do stuff
a psycopg cursor
psycopg2.extensions.cursor
execute_prepared_statement
Execute an SQL statement with optional prepared statements.
sql – the SQL statement string
parameters – dictionary to use to populate the prepared statement
execute_raw
Execute a raw SQL statement and return the result.
query – a string containing a raw SQL statement
the result of the query
get_backend_entity
Return the backend entity that corresponds to the given Model instance
model – the ORM model instance to promote to a backend instance
the backend entity corresponding to the given model
aiida.orm.implementation.entities.BackendEntity