Google Groups

Re: PostgreSQL schemas


gabor Dec 18, 2010 4:06 AM
Posted in group: redbeanphp
Hi! welcome to the forum!
Unfortunately Redbean does not support postgreSQL schemas (yet).
It is designed to be DB agnostic so there are not a lot of DB specific
features at the moment. For postgreSQL examples see pgtest.php in git
repo, it contains the unit tests for postgres.

cheers
Gabor

On Fri, Dec 17, 2010 at 8:38 PM, Mauricio <maurici...@gmail.com> wrote:
> Hello everyone!
>
> I'm impressed with RedBean.
>
> I'm working with Doophp and Doctrine, but as far as I know RedBean is
> faster then Doctrine when the subject is faster development. I mean, I
> don't know about benchmark and all. But I really liked how easy it is
> to create simple CRUD requests.
>
> Anyway, I've got a road block when I tried to connect to a specific
> PostgreSQL Schema...
>
> I have:
> db = postgres
> schema = phonebook
> table = users
>
> How can I find all users in my phonebook to create a list?
>
> My code:
>
> <?php
>
> require 'rb.php';
>
> R::setup("pgsql:host=localhost
> dbname=postgres",'postgres','mypassword');
>
> ... and here I've got stucked.
>
> I know I can
> $user = R::getAll("SELECT * FROM phonebook.users ");
>
> But how can I do the same using the RedBean structure?
>
> Thank in advance.
>
> :)
>
>
> --
> You received this message because you are subscribed to the Google Groups "redbeanphp" group.
> To post to this group, send email to redbe...@googlegroups.com.
> To unsubscribe from this group, send email to redbeanorm+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redbeanorm?hl=en.
>
>