Skip to Content
Menu
This question has been flagged
2 Replies
3452 Views

Hi,

I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.

Thanks.

Avatar
Discard
Best Answer

Try this code,

    `dbName = self._cr.dbname`

Avatar
Discard
Best Answer

Hi please try this:-

>> cursor_postgres.execute("select current_database()")

Avatar
Discard
Related Posts Replies Views Activity
4
Apr 24
639
2
Feb 23
5093
1
Mar 18
2378
1
Mar 17
2553
1
Aug 16
4155