Example #1
0
def get_definition_random():
    result = client.perform_read_query("SELECT * FROM definitions ORDER BY RAND() LIMIT 1")

    return def_result_to_dict(result)
Example #2
0
def get_definition_random():
    result = client.perform_read_query(
        "SELECT * FROM definitions ORDER BY RAND() LIMIT 1")

    return def_result_to_dict(result)
Example #3
0
def get_definition(def_id):
    result = client.perform_read_query("SELECT * FROM definitions WHERE def_id = " + str(def_id) + " LIMIT 1")

    return def_result_to_dict(result)
Example #4
0
def get_definition(def_id):
    result = client.perform_read_query(
        "SELECT * FROM definitions WHERE def_id = " + str(def_id) + " LIMIT 1")

    return def_result_to_dict(result)