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 adapter #11
Conversation
Awesome, beat me to it. |
How much do MySql and PostgreSql adapters actually have in common? Could they subclass a common base class? Also what will the policy be with adapters we cannot (regularly) test ourselves? |
First of all thanks @agborkowski and @zdrap for your hard work! I've just reviewed the attached patches a bit more and have a few tips for improvement.
|
@DavidPersson we're start using lithium, git and github in our inc. so pls. forgive some mistake. |
@agborkowski Let me rephrase that as it maybe came around wrong: It is really great and appreciated that you're putting time into improving Lithium. I took the pull request as a chance to make the submitted patches a cool and even better thing. So no worries. My first comment is much more of a side note to how adapter additions should be handled in general, directed at the team. |
@DavidPersson of course i'm sure understand You, its good point (this commit) to start make a good pieces of lithium by community ! anyway sombody know (mysql_unbuffered_query) similar function in pgsql ? |
…cting to the database is automatically set to search_path - provided it is entered in the configuration diagram of the connection.
@agborkowski The PostgreSQL driver for PHP does not support unbuffered queries. That's okay though, your adapter does not need to support every feature of other adapters. I'll try to test it and merge in your patches this weekend. Thanks again for the awesome work! |
…on of serial-type fields. Fixed _insertId method () which returns the ID of the new record.
This pull request has been merged to the |
I just can't understand one thing. Lithium is strictly connected to PHP 5.3. Why then, adapters are not written extending PDO? |
i think low level adapter are faster than create next abstract layer over PDO |
@xorock @agborkowski We are currently in the process of moving our datasources over to PDO. MySQL has already been moved, sqlite3 is under way and postgres is also planned. |
PostgreSql adapter