Skip to Content
मेन्यू
This question has been flagged
2 Replies
4750 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
अप्रैल 24
2437
2
फ़र॰ 23
6428
1
मार्च 18
3646
1
मार्च 17
3573
1
अग॰ 16
5163