Skip to Content
Menú
This question has been flagged
2 Respostes
4598 Vistes

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

Try this code,

    `dbName = self._cr.dbname`

Avatar
Descartar
Best Answer

Hi please try this:-

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
4
d’abr. 24
2263
2
de febr. 23
6340
1
de març 18
3492
1
de març 17
3432
1
d’ag. 16
5079