It's not part of the public API, but you could do: row.update_record.db
You can also get the tablename via: row.update_record.tablename The .update_record attribute is a RecordUpdater object, which must store the db connection, table name, and record ID in order to be able to update the record in the database. Note, you can also access the db object via the Rows object using rows.db. Anthony On Tuesday, December 15, 2015 at 1:54:02 PM UTC-5, Yoel Benitez Fonseca wrote: > > hi ! suppose i get a row form a query in a function, is there any way > of extract the database connection used to get the row form it ? > row._db ? row.db ? > > -- > Yoel BenÃtez Fonseca > http://redevil.cubava.cu/ > $ python -c "import this" > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

