According to chapter 6.4 of the book let's have a connection like

db = DAL('sqlite://storage.db')

and the statement

>>> print db._dbname
sqlite




(1) What I do not understand:
Why is _dbname == "sqlite"? I think that is the name of the *connector *and
the name of the *database *should be "storage.db"

(2) I get this name using db._uri.split('//')[1], but this fails with uris
like 'sqlite:memory'
What is the best way to get the table name only?

(3) What is the best way to get a table name as "db.name"

Regards, Martin

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to