I wanted to get access of the, sqlite database of a Eden App from the WebSetup Co-app .Could you please tell me a way to do this.I tried copying all ".table" files from the database folder of Eden to my app and then calling Database statements .However this did not help.Is there any need to be change in web2py files ,could you please give me some pointers regarding this.
However the solution will need to work across all of our supported databases.
sqlite's lack of multi-user access shouldn't be an issue for it's
usecase: single user systems, such as laptops.
Since we perceive websetup as running before the main models are run
then it shouldn't need acess to the .table files, but if it does need
to access some then it should be able to create it's own independent
copy without issue.
Have you tried setting the DB access as
sqlite://../../eden/databases/storage.db?
- am not sure it'll work, but worth a first stab...
F
However, this does not give you access to the model - that would need to be
replicated. However, you would not need to replicate all of the models if you
just need one table.
You can though also get access to the environment of the other application,
which is described here:
http://www.web2py.com/book/default/chapter/04?search=environment#Execution-
Environment
This gives you full access to the Eden database from another application
through the DAL. Also read the next section "Cooperation".
If it is not a web2py app (and why would that be?), then you need to manually
connect to the respective database, which highly depends on the DB type and
would probably require a separate setup (a setup application for the setup
application?). Doesn't seem to make that much sense, actually.
Dominic