db_methods
persistence.db_methods
add_object_to_db
add_object_to_db(obj, make_commit=True)
Adds object to database and makes commit
Source code in yaptide/persistence/db_methods.py
16 17 18 19 20 |
|
delete_object_from_db
delete_object_from_db(obj, make_commit=True)
Deletes object from database and makes commit
Source code in yaptide/persistence/db_methods.py
23 24 25 26 27 |
|
fetch_all_clusters
fetch_all_clusters()
Fetches all clusters
Source code in yaptide/persistence/db_methods.py
137 138 139 140 |
|
fetch_batch_simulation_by_job_id
fetch_batch_simulation_by_job_id(job_id)
Fetches batch simulation by job id
Source code in yaptide/persistence/db_methods.py
67 68 69 70 |
|
fetch_batch_tasks_by_sim_id
fetch_batch_tasks_by_sim_id(sim_id)
Fetches batch tasks by simulation
Source code in yaptide/persistence/db_methods.py
107 108 109 110 |
|
fetch_celery_simulation_by_job_id
fetch_celery_simulation_by_job_id(job_id)
Fetches celery simulation by job id
Source code in yaptide/persistence/db_methods.py
61 62 63 64 |
|
fetch_celery_tasks_by_sim_id
fetch_celery_tasks_by_sim_id(sim_id)
Fetches celery tasks by simulation
Source code in yaptide/persistence/db_methods.py
101 102 103 104 |
|
fetch_cluster_by_id
fetch_cluster_by_id(cluster_id)
Fetches cluster by id
Source code in yaptide/persistence/db_methods.py
143 144 145 146 |
|
fetch_estimator_by_sim_id_and_est_name
fetch_estimator_by_sim_id_and_est_name(sim_id, est_name)
Fetches estimator by simulation id and estimator name
Source code in yaptide/persistence/db_methods.py
119 120 121 122 |
|
fetch_estimators_by_sim_id
fetch_estimators_by_sim_id(sim_id)
Fetches estimators by simulation id
Source code in yaptide/persistence/db_methods.py
113 114 115 116 |
|
fetch_input_by_sim_id
fetch_input_by_sim_id(sim_id)
Fetches input by simulation id
Source code in yaptide/persistence/db_methods.py
149 150 151 152 |
|
fetch_keycloak_user_by_username
fetch_keycloak_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
48 49 50 51 |
|
fetch_logfiles_by_sim_id
fetch_logfiles_by_sim_id(sim_id)
Fetches logfiles by simulation id
Source code in yaptide/persistence/db_methods.py
155 156 157 158 |
|
fetch_page_by_est_id_and_page_number
fetch_page_by_est_id_and_page_number(est_id, page_number)
Fetches page by estimator id and page number
Source code in yaptide/persistence/db_methods.py
131 132 133 134 |
|
fetch_pages_by_estimator_id
fetch_pages_by_estimator_id(est_id)
Fetches pages by estimator id
Source code in yaptide/persistence/db_methods.py
125 126 127 128 |
|
fetch_simulation_by_job_id
fetch_simulation_by_job_id(job_id)
Fetches simulation by job id
Source code in yaptide/persistence/db_methods.py
54 55 56 57 58 |
|
fetch_simulation_by_sim_id
fetch_simulation_by_sim_id(sim_id)
Fetches simulation by sim id
Source code in yaptide/persistence/db_methods.py
73 74 75 76 77 |
|
fetch_simulations_by_user_id
fetch_simulations_by_user_id(user_id)
Fetches simulations by user id
Source code in yaptide/persistence/db_methods.py
80 81 82 83 84 |
|
fetch_task_by_sim_id_and_task_id
fetch_task_by_sim_id_and_task_id(sim_id, task_id)
Fetches task by simulation id and task id
Source code in yaptide/persistence/db_methods.py
87 88 89 90 91 |
|
fetch_tasks_by_sim_id
fetch_tasks_by_sim_id(sim_id)
Fetches tasks by simulation id
Source code in yaptide/persistence/db_methods.py
94 95 96 97 98 |
|
fetch_user_by_id
fetch_user_by_id(user_id)
Fetches user by id
Source code in yaptide/persistence/db_methods.py
35 36 37 38 39 |
|
fetch_yaptide_user_by_username
fetch_yaptide_user_by_username(username)
Fetches user by username
Source code in yaptide/persistence/db_methods.py
42 43 44 45 |
|
make_commit_to_db
make_commit_to_db()
Makes commit
Source code in yaptide/persistence/db_methods.py
30 31 32 |
|
update_simulation_state
update_simulation_state(simulation, update_dict)
Updates simulation state and makes commit
Source code in yaptide/persistence/db_methods.py
167 168 169 170 171 172 |
|
update_task_state
update_task_state(task, update_dict)
Updates task state and makes commit
Source code in yaptide/persistence/db_methods.py
161 162 163 164 |
|