Hi Satishat,
Well we are actually not using a database per se, or a very simple one at most. The file is actually just a storage area where the samples are written one after the other. It is not possible to do request against the file like in a more regular database.
The only thing we do is to re-read the file when flushing it to the server, so that we can run statistics and possibly adapt the serialization strategy.
You can have a look for yourself the module that create and fill in that file is called sdb/stagedb, it is located here: http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/tree/libs/bysant
There is a Lua wrapper here:
http://git.eclipse.org/c/mihini/org.eclipse.mihini.git/tree/luafwk/stagedb
Please note that sdb can put the data in a regular files but there is also an option to create the storage directly in RAM.
Thx,
Cuero
From: mihini-dev-bounces@xxxxxxxxxxx [mailto:mihini-dev-bounces@xxxxxxxxxxx] On Behalf Of satishbaganal iit
Sent: Thursday, November 13, 2014 8:28 AM
To: mihini-dev@xxxxxxxxxxx
Subject: [mihini-dev] Mihini Table Creation
Hi guys
I am using racon library and creating some table withsome data and it writing some file
with .tbl extension please can you explains me mihini using which database and how to access it.
Example:
tbl = av_asset:newTable('example', {'timestamp', 'temp1','temp2','temp3','temp4'}, 'file', 'never')
local dst = tbl:newConsolidation('consolidated',
-- { timestamp='median', temp1='mean', temp2='mean' , temp3='mean' ,temp4='mean' })
--fill data into src
tbl:pushRow{ timestamp=1, temp1=25 , temp2=25 , temp3=25 , temp4=10 }
and it writing following name file.
Database.example-temp1-temp2-temp3-temp4-timestamp.tbl