Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mihini-dev] Mihini persist API

Hi guys
                  i am using the following code create new table and it creating test1.l2b
file and writing these values in that file.

--local t = require 'persist'
local persist = require 'persist'
t = persist.table.new('test1')

local function main()
print("*********************")
print("   Hello persist")
print("*********************")

 persist.table.empty(t)
 
       for i=1,2 do
            t["key"..i] = "value"..i
        end

end
main()

My question is how to update the values with new values like
my old values in file are
key1 = value1  key2 = vaue2 key3 = value3

and i want to update with

key1 = high  key2 = low key3 = 1

please guide me how to solve the problem and is persist is related to sqlite3 database.

Back to the top