Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4565 Zobrazení

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
Zrušit
Nejlepší odpověď

Try this code,

    `dbName = self._cr.dbname`

Avatar
Zrušit
Nejlepší odpověď

Hi please try this:-

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
dub 24
2225
2
úno 23
6308
Database Odoo Vyřešeno
1
bře 18
3445
1
bře 17
3415
1
srp 16
5045