Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4668 Prikazi

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
Opusti
Best Answer

Try this code,

    `dbName = self._cr.dbname`

Avatar
Opusti
Best Answer

Hi please try this:-

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
apr. 24
2337
2
feb. 23
6380
1
mar. 18
3546
1
mar. 17
3473
1
avg. 16
5123