#126, added skeleton of note relations, copied from similar concept of labels

This commit is contained in:
azivner
2018-07-27 10:52:48 +02:00
parent 4d6eda8fe6
commit 8a95afd756
15 changed files with 662 additions and 129 deletions

View File

@@ -41,6 +41,10 @@ async function getLabel(labelId) {
return await getEntity("SELECT * FROM labels WHERE labelId = ?", [labelId]);
}
async function getRelation(relationId) {
return await getEntity("SELECT * FROM relations WHERE relationId = ?", [relationId]);
}
async function getOption(name) {
return await getEntity("SELECT * FROM options WHERE name = ?", [name]);
}
@@ -72,6 +76,7 @@ module.exports = {
getBranch,
getImage,
getLabel,
getRelation,
getOption,
updateEntity,
setEntityConstructor