Re: [sqlalchemy] Re: H2 database

2015-04-25 Thread Cecil Westerhof
2015-04-24 18:06 GMT+02:00 Jonathan Vanasco jonat...@findmeon.com:

 SqlAlchemy needs 2 things for a database work:

 1. A python database driver
 2. A SqlAlchemy dialect (that tells SqlAlchemy how to write sql for the
 driver)

 So...

 1. H2 doesn't seem to have any Python drivers or other support.  I just
 came across an old forum post that talked about possibly using Postgresql
 client since they supported similar protocols, but that's about all I could
 find.

 2. There are a handful of posts and articles on writing custom dialects.
 Several recent ones as well.

 If you're just trying to handle the dialect, and their syntax is
 reasonably similar to an existing dialect... I think you could do it alone.

 If you have to write the general Python support as well though, that's a
 bigger task.


​I inquired also on the H2 list and got the following response:
H2 supports the PostgeSQL wire protocol, so you can use the PostgreSQL
database driver.
Although you will probably need to tweek the dialect description that
SqlAlchemy needs.

So it should be doable.
I have another project. :-D

-- 
Cecil Westerhof

-- 
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


Re: [sqlalchemy] Re: H2 database

2015-04-24 Thread Mike Bayer



On 4/24/15 12:06 PM, Jonathan Vanasco wrote:

SqlAlchemy needs 2 things for a database work:

1. A python database driver
2. A SqlAlchemy dialect (that tells SqlAlchemy how to write sql for 
the driver)


So...

1. H2 doesn't seem to have any Python drivers or other support.  I 
just came across an old forum post that talked about possibly using 
Postgresql client since they supported similar protocols, but that's 
about all I could find.


2. There are a handful of posts and articles on writing custom 
dialects.  Several recent ones as well.


If you're just trying to handle the dialect, and their syntax is 
reasonably similar to an existing dialect... I think you could do it 
alone.


If you have to write the general Python support as well though, that's 
a bigger task.

plus, there's a README for general info on new dialects!

https://github.com/zzzeek/sqlalchemy/blob/master/README.dialects.rst







--
You received this message because you are subscribed to the Google 
Groups sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to sqlalchemy+unsubscr...@googlegroups.com 
mailto:sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com 
mailto:sqlalchemy@googlegroups.com.

Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.


[sqlalchemy] Re: H2 database

2015-04-24 Thread Jonathan Vanasco
SqlAlchemy needs 2 things for a database work:

1. A python database driver
2. A SqlAlchemy dialect (that tells SqlAlchemy how to write sql for the 
driver)

So...

1. H2 doesn't seem to have any Python drivers or other support.  I just 
came across an old forum post that talked about possibly using Postgresql 
client since they supported similar protocols, but that's about all I could 
find.

2. There are a handful of posts and articles on writing custom dialects. 
 Several recent ones as well.

If you're just trying to handle the dialect, and their syntax is reasonably 
similar to an existing dialect... I think you could do it alone.

If you have to write the general Python support as well though, that's a 
bigger task.

-- 
You received this message because you are subscribed to the Google Groups 
sqlalchemy group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.