[TxMt] Re: Python: SQL in triple " strings scope

Ed Singleton singletoned at gmail.com
Thu Oct 18 19:41:00 UTC 2007


On 10/17/07, Alex Ross <alex.j.ross at gmail.com> wrote:
> > Touché ;-)
> > I'll try SQLAlchemy (or other one). Or any other suggestion? I'd like
> > not to embed or do right way my code. And I open for ideas ;)
>
> I've added the sql-include to python strings... you should be seeing
> it in the next Cutting-Edge update, or sooner if you update your own
> bundles.

Personally, I'd also like to see similar for when a triple quoted
string begins with a valid html tag that contains a namespace
declaration (such as Genshi or Kid).

> SQLAlchemy is pretty much the de-facto python SQL package these
> days.  There is also SQLObject, but I haven't used it and I haven't
> heard as many nice things about it either.

I would also verify that when doing difficult things in sql in python,
SQLAlchemy rocks.  If you are doing easy things, look into Elixir
(which is a layer on top of SQLAlchemy).

Ed


More information about the textmate mailing list