[sqlalchemy] Mapping serial(auto increment) Postgres to bigserial

2007-10-02 Thread voltron
How does one specify that the auto incrementing field should map to big serial and not serial? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to

[sqlalchemy] Re: one-to-many access and modification

2007-10-02 Thread King Simon-NFHD78
-Original Message- From: sqlalchemy@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ken Pierce Sent: 29 September 2007 00:21 To: sqlalchemy Subject: [sqlalchemy] one-to-many access and modification Hello all, I just got into using sqlalchemy today and I have a

[sqlalchemy] Re: IntegrityError during query?

2007-10-02 Thread [EMAIL PROTECTED]
Hi Michael, sorry about the lack of information; I wasn't clear on what you were looking for. The failing constraint is a customer one for email addresses: CREATE DOMAIN base.email as TEXT CHECK (VALUE ~ '[EMAIL PROTECTED](\\.[-\\w]+)*\\.\\w{2,4}$'); Thanks again! Mark On Oct 1, 5:46

[sqlalchemy] Re: Mapping serial(auto increment) Postgres to bigserial

2007-10-02 Thread Ants Aasma
On Oct 2, 10:06 am, voltron [EMAIL PROTECTED] wrote: How does one specify that the auto incrementing field should map to big serial and not serial? Use the sqlalchemy.databases.postgres.PGBigInteger datatype for that field. --~--~-~--~~~---~--~~ You received

[sqlalchemy] Re: IntegrityError during query?

2007-10-02 Thread Michael Bayer
On Oct 2, 2007, at 7:56 AM, [EMAIL PROTECTED] wrote: Hi Michael, sorry about the lack of information; I wasn't clear on what you were looking for. The failing constraint is a customer one for email addresses: CREATE DOMAIN base.email as TEXT CHECK (VALUE ~ '[EMAIL

[sqlalchemy] Re: IntegrityError during query?

2007-10-02 Thread Michael Bayer
On Oct 2, 2007, at 7:56 AM, [EMAIL PROTECTED] wrote: Hi Michael, sorry about the lack of information; I wasn't clear on what you were looking for. The failing constraint is a customer one for email addresses: CREATE DOMAIN base.email as TEXT CHECK (VALUE ~ '[EMAIL

[sqlalchemy] Re: Multiple database connections - Using ORM to copy table data from one DB to another

2007-10-02 Thread Cory Johns
I had originally tried the expunge method, as in the code I had attached, but if I just use session.save(policy), I get the aforementioned exception, and if I use session.save_or_update(policy) it simply does nothing. When using session.merge(policy), I get the following exception:

[sqlalchemy] Re: Multiple database connections - Using ORM to copy table data from one DB to another

2007-10-02 Thread Michael Bayer
On Oct 2, 2007, at 10:32 AM, Cory Johns wrote: I had originally tried the expunge method, as in the code I had attached, but if I just use session.save(policy), I get the aforementioned exception, and if I use session.save_or_update(policy) it simply does nothing. When using

[sqlalchemy] Re: Mapping serial(auto increment) Postgres to bigserial

2007-10-02 Thread voltron
Thanks On Oct 2, 3:54 pm, Ants Aasma [EMAIL PROTECTED] wrote: On Oct 2, 10:06 am, voltron [EMAIL PROTECTED] wrote: How does one specify that the auto incrementing field should map to big serial and not serial? Use the sqlalchemy.databases.postgres.PGBigInteger datatype for that field.

[sqlalchemy] Fwd: Migrate: svndump loaded into google code project

2007-10-02 Thread Mark Ramm
I thought this might be of interest to many of you. We've been trying to gather up a few people to and revive the floundering SQLAlchemy migrations project. There's actually some pretty good code there already, it just needs a bit of love and tenderness to get it up to date wth SQLALchemy 0.4.