Update readme

This commit is contained in:
Coder12a
2018-11-05 22:13:37 -06:00
parent 185a853820
commit ee7602f2fe
2 changed files with 126 additions and 1 deletions

View File

@ -85,6 +85,13 @@ function colddb.get_tag(db,name)
return ""
end
function colddb.get_or_add_tag(db,name,tag)
if not db.tags[name] then
colddb.add_tag(db,name,tag)
end
return name
end
function colddb.remove_tag(db,name)
if db.tags[name] then
local delete_path = string.format("%s%s",db.directory,db.tags[name])