Skip to Content
Menu
This question has been flagged
2 Replies
4890 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
2592
2
vas. 23
6550
1
kov. 18
3726
1
kov. 17
3669
1
rugp. 16
5267