pg_stud.api#

Module Contents#

Functions#

execute_query

Executes Query without checking correctness and saves buffer Does not reset DB

check_answer_correct_api

Executes Query with checking correctness, saves buffer and correctness This also resets the DB.

solution_result

Returns the output of the Solution number 1 after reseting the DB

check_or_install_db

If the schema for the topic is not installed the db will be installed. enumber is being ignored

reset_db

Resets DB to specific exercise

Data#

router

API#

pg_stud.api.router#

None

pg_stud.api.execute_query(request: django.http.HttpRequest, data: pg_stud.schemas.QueryIn)#

Executes Query without checking correctness and saves buffer Does not reset DB

pg_stud.api.check_answer_correct_api(request: django.http.HttpRequest, data: pg_stud.schemas.QueryIn)#

Executes Query with checking correctness, saves buffer and correctness This also resets the DB.

pg_stud.api.solution_result(request: django.http.HttpRequest, data: pg_stud.schemas.ExerciseSpeciIn)#

Returns the output of the Solution number 1 after reseting the DB

pg_stud.api.check_or_install_db(request: django.http.HttpRequest, data: pg_stud.schemas.ExerciseSpeciIn)#

If the schema for the topic is not installed the db will be installed. enumber is being ignored

pg_stud.api.reset_db(request: django.http.HttpRequest, data: pg_stud.schemas.ExerciseSpeciIn)#

Resets DB to specific exercise