Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4599 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
2263
2
feb. 23
6340
1
mar. 18
3492
1
mar. 17
3434
1
avg. 16
5079