Posted 09 May 2013 - 02:01 PM
Hi guys, i started to create a simple database system:
Functions:
createDatabase(table,filename) : creates/overrides the <filename> an puts the whole content of table in
This database is simple for having a 2d array save,
Will be added soon:
Here is the pastbin link:
http://pastebin.com/YnWmFmTm
In computer:
API:
Functions:
Spoiler
loadDatabase(filename) : returns a 2 Dimesional tablecreateDatabase(table,filename) : creates/overrides the <filename> an puts the whole content of table in
This database is simple for having a 2d array save,
Will be added soon:
Spoiler
-encryption,Here is the pastbin link:
http://pastebin.com/YnWmFmTm
In computer:
pastebin get YnWmFmTm
API:
os.loadAPI("database")
example = {
[1] = {"r1 c1","r1 c2","r1 c3"},
[2] = {"r2 c1","r2 c2","r2 c3", "r2 c4"},
[3] = {"r3 c1","r3 c2","r3 c3","r3 c4","r3 c5"}
}
database.createDatabase(example,"example.db")
new = database.loadDatabase("example.db")
--in new is now the complete code from "example.db" in array form