Skip to Content
Menu
This question has been flagged
2 Replies
4729 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
2414
2
vas. 23
6413
1
kov. 18
3630
1
kov. 17
3544
1
rugp. 16
5150