[luci] sqlite connection to luci

Deepak Agasibagil deepak at relysys.co.in
Thu Jun 6 09:00:38 CEST 2013


Thank you all, for your valuable suggestions.
What i thought was to store data in sqlite3 database instead of storing
them in configuration pages.


On Wed, Jun 5, 2013 at 10:33 PM, Daniel Dickinson <
daniel at cshore.neomailbox.net> wrote:

> On 03/06/13 10:14 AM, Deepak Agasibagil wrote:
> > Hello,
> >        I am newbie to this community.
> > I have router with OpenWrt running on it and  i am able to access router
> > through LUCI interface.
> >
> > Please guide me on below things
> >
> > 1) How to associate LuCI with a database.( I didn't found any document
> > on this in luci homesite)
>
> Depends what you mean by database.  If you mean an actual possibly large
> database then this isn't possible with LuCI.  LuCI does however store
> data persistently from the configuration pages using the Unified
> Configuration Interface (UCI) which is an interfaces to text
> configuration files (look in /etc/config for examples of such files)
> though at some point there may be other sources (like NVRAM variables),
> if I ever get the time for one of my lower priority project ideas (not
> soon).
>
> >      My intention is to provide form on 'view' when a user fills form
> > and hit submit button, the data should be stored in database
> >     and later i can query the database to retrieve the data stored and
> > represent on web page.
>
> That what CBI is for in LuCI (that is representing stored config).
>
> >
> > 2) How to run lua code or functions inside a 'Controller' in LuCI.
> >
> > 3) And the last one is that, Does LuCI framework supports multiple user
> > login?
>
> Not at present.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20130606/41280f8e/attachment.html>


More information about the luci mailing list