Skip to content

PropaneDB

V-0.0.1 ·

Importing

unlike most lua librarys for propaneDB you need to run the result of require("/wolfos.libs.propaneDB") with a argument

local propane = require("/wolfos.libs.propaneDB")("db")
arg result
ver version
db the main propaneDB library

Methods

load

.load(<path to db>)
opens the specifed db

new

Creating DBs

the created database is not automaticly saved, see

.new(<path to db>)
creates the specifed db

Types

database

newTable

·

:newTable(<table name>)

setValue

·

:setValue(<table>,<name>,<value>)
sets the specifyed value in the database

getValue

:getValue(<table>,<name>)
gets the specifyed value from the database

save

·

:save()
saves database edits to file


    • Database edit, requires save
    • No edits to database
    • Saves database edits to file
    • chainable