Module to define the database models for the SqlAlchemy backend.
Module to manage authentification information for the SQLA backend.
aiida.backends.sqlalchemy.models.authinfo.
DbAuthInfo
Bases: sqlalchemy.ext.declarative.api.Model
sqlalchemy.ext.declarative.api.Model
Class that keeps the authernification data.
__init__
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in kwargs.
kwargs
Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
__mapper__
__module__
__str__
Return str(self).
__table__
__table_args__
__tablename__
_metadata
_sa_class_manager
aiidauser
aiidauser_id
auth_params
dbcomputer
dbcomputer_id
enabled
id
Base SQLAlchemy models.
aiida.backends.sqlalchemy.models.base.
Model
Bases: object
object
Query model.
__dict__
__weakref__
list of weak references to the object (if defined)
delete
Emulate the behavior of Django’s delete() method
commit – whether to do a commit or just remover from the session
query
save
Emulate the behavior of Django’s save() method
commit – whether to do a commit or just add to the session
the SQLAlchemy instance
session
_AiidaQuery
Bases: sqlalchemy.orm.query.Query
sqlalchemy.orm.query.Query
AiiDA query.
__iter__
Iterator.
_QueryProperty
Query property.
__get__
Get property of a query.
Initialize self. See help(type(self)) for accurate signature.
_SessionProperty
Session Property
Module to manage comments for the SQLA backend.
aiida.backends.sqlalchemy.models.comment.
DbComment
Class to store comments using SQLA backend.
Adding mtime attribute if not present.
content
ctime
dbnode
dbnode_id
mtime
user
user_id
uuid
Module to manage computers for the SQLA backend.
aiida.backends.sqlalchemy.models.computer.
DbComputer
Class to store computers using SQLA backend.
Provide _metadata and description attributes to the class.
description
hostname
name
pk
scheduler_type
transport_type
aiida.backends.sqlalchemy.models.group.
DbGroup
Class to store groups using SQLA backend.
dbnodes
extras
label
time
type_string
Module to manage logs for the SQLA backend.
aiida.backends.sqlalchemy.models.log.
DbLog
Class to store logs using SQLA backend.
Setup initial value for the class attributes.
levelname
loggername
message
Module to manage nodes for the SQLA backend.
aiida.backends.sqlalchemy.models.node.
DbLink
Class to store links between nodes using SQLA backend.
input
input_id
output
output_id
type
DbNode
Class to store nodes using SQLA backend.
Add three additional attributes to the base class: mtime, attributes and extras.
Get string object out of DbNode object.
attributes
get_simple_name
Return a string with the last part of the type name.
If the type is empty, use ‘Node’. If the type is invalid, return the content of the input variable invalid_result.
invalid_result
invalid_result – The value to be returned if the node type is not recognized.
inputs
node_type
outputs
outputs_q
process_type
Module to manage node settings for the SQLA backend.
aiida.backends.sqlalchemy.models.settings.
DbSetting
Class to store node settings using the SQLA backend.
del_value
Delete a setting value.
get_description
This can be called on a given row and will get the corresponding description.
getvalue
This can be called on a given row and will get the corresponding value.
key
set_value
Set a setting value.
val
Module to manage users for the SQLA backend.
aiida.backends.sqlalchemy.models.user.
DbUser
Store users using the SQLA backend.
Set additional class attributes with respect to the base class.
email
first_name
institution
last_name