Re: [sqlalchemy] SQLAlchemy CORE: bindparam()-like solution but for the type_ argument of func.cast()

2020-04-06 Thread Mike Bayer
On Mon, Apr 6, 2020, at 12:31 PM, Massimiliano della Rovere wrote: > > > > Il giorno lun 6 apr 2020 alle ore 16:30 Mike Bayer > ha scritto: >> __ >> >> On Mon, Apr 6, 2020, at 5:42 AM, Massimiliano della Rovere wrote: >>> In SQLAlchemy CORE is there any way to use bindparam() to late-bind

Re: [sqlalchemy] SQLAlchemy CORE: bindparam()-like solution but for the type_ argument of func.cast()

2020-04-06 Thread Massimiliano della Rovere
Il giorno lun 6 apr 2020 alle ore 16:30 Mike Bayer ha scritto: > > On Mon, Apr 6, 2020, at 5:42 AM, Massimiliano della Rovere wrote: > > In SQLAlchemy CORE is there any way to use bindparam() to late-bind the > type_ parameter of the func.cast function instead of a column? > > I wrote a function

Re: [sqlalchemy] SQLAlchemy CORE: bindparam()-like solution but for the type_ argument of func.cast()

2020-04-06 Thread Mike Bayer
On Mon, Apr 6, 2020, at 5:42 AM, Massimiliano della Rovere wrote: > In SQLAlchemy CORE is there any way to use bindparam() to late-bind the type_ > parameter of the func.cast function instead of a column? > > I wrote a function returning a "baked query", that extracts settings stored > in a

[sqlalchemy] SQLAlchemy CORE: bindparam()-like solution but for the type_ argument of func.cast()

2020-04-06 Thread Massimiliano della Rovere
In SQLAlchemy CORE is there any way to use bindparam() to late-bind the type_ parameter of the func.cast function instead of a column? I wrote a function returning a "baked query", that extracts settings stored in a XML column. I want the extracted value to be cast to a type depending on the