Skip to Content
Menu
This question has been flagged
2 Replies
4980 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
2754
2
vas. 23
6650
1
kov. 18
3851
1
kov. 17
3765
1
rugp. 16
5350