MCPcopy
hub / github.com/LAION-AI/Open-Assistant / get

Method get

discord-bots/oa-bot-js/src/modules/db.ts:14–17  ·  view source on GitHub ↗
(table, key)

Source from the content-addressed store, hash-verified

12 }
13 }
14 get(table, key) {
15 const data = JSON.parse(fs.readFileSync(dbPath, "utf-8"));
16 return data[table][key];
17 }
18 set(table, key, value) {
19 const data = JSON.parse(fs.readFileSync(dbPath, "utf-8"));
20 data[table][key] = value;

Callers 15

download_dataFunction · 0.45
init_praw_redditFunction · 0.45
get_uid_by_url_tokenFunction · 0.45
get_user_answersFunction · 0.45
get_answer_contentFunction · 0.45
get_answer_contentFunction · 0.45
mainFunction · 0.45
get_biostars_datasetFunction · 0.45
executeFunction · 0.45
getUserLangFunction · 0.45
setUserLangFunction · 0.45
executeFunction · 0.45

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected