Skip to Content
Menu
This question has been flagged
2 Replies
5135 Rodiniai

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.

Portretas
Atmesti
Best Answer

Try this code,

    `dbName = self._cr.dbname`

Portretas
Atmesti
Best Answer

Hi please try this:-

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
bal. 24
2943
2
vas. 23
6798
1
kov. 18
3989
1
kov. 17
3921
1
rugp. 16
5540