Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostgreSQL Schema #36

Open
robinson-rso opened this issue Jul 16, 2013 · 3 comments
Open

PostgreSQL Schema #36

robinson-rso opened this issue Jul 16, 2013 · 3 comments

Comments

@robinson-rso
Copy link

Is Relational capable of dealing with PostgreSQL Schemas? I am not sure if I can map the schemas and tables properly. I have used variables instead methods to map schemas:

$vendor = 'og0001.vendor';
$array = $mapper->$vendor->fetchAll();

Will Relational support schemas?

Thanks!

@nickl-
Copy link
Member

nickl- commented Sep 23, 2013

Relational uses PDO so anything that PDO supports should work as expected.

Please let us know what you find, I do know that it works on MySQL and Sqlite but haven't personally tested the rest.

@robinson-rso
Copy link
Author

There are several databases that supports PDO, but there are some important differences between PostgreSQL and MySQL. Including the fact that PostgreSQL supports schemas (whereas MySQL uses separate database). Some ORMs like Doctrine for example, is capable of dealing with this.

https://groups.google.com/forum/#!topic/doctrine-user/qFid2rgRH-s

@nickl-
Copy link
Member

nickl- commented Nov 8, 2013

AFAIK PDO does not make any special provisioning for PostgreSQL schemas and I would imagine that they are simply treated the same way as MySQL would for databases. That said I am not sure if we can do different databases or not?

We have not tested on postgres and I think we should also ensure that mapper works across multiple databases.

@robinson-rso thank you for pointing this out, please don't hesitate to bring more items under scrutiny. You may consider this a huge contribution. something we likely would not have considered on our own for a long time.

Thank you for your help!

This was referenced Nov 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants