Hi,
I'm writing some re-usable modules, which use a postgresql database (through pdo).
Is it possible to set the schema in some parameter, so I don't have to change all the DbTable classes when I transport my code?
I tried it in the ini file like:
resources.db.adapter = PDO_PGSQL
resources.db.params.host = localhost
resources.db.params.username = user
resources.db.params.password = pass
resources.db.params.dbname = defaultdb
resources.db.params.schema = myschema
But that doesn't seem to work.
Should this be possible or are there any other possiblities?
Thanks,
Mark
2009年10月12日星期一
订阅:
博文评论 (Atom)
没有评论:
发表评论