Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4550 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
2188
2
úno 23
6297
Database Odoo Vyřešeno
1
bře 18
3422
1
bře 17
3391
1
srp 16
5026