there is a plugin/demo for this.
works like this:
but the database connection is not made straight from the mapping script.
bots uses an intermediate json file, which is used in the database
connector (which is a channel).
I am not sure if I did the right thing here.
maybe it would be much easier to use a dtabase connector straight for
the mapping script.
let me know if you have ideas about this.
kind regards,
henk-jan
yes, I agree it is too complex.
when I designed this I made some mistakes:
- tried to keep the 'flow' in bots the same (inchannel, mapping,
outchannel). it is moch more intuitive to do this straight from the
mapping script.
- using SQLalchemy. SQLalchemy has a very steep learning curve, in fact
in most cases plain SQL is much easier.
I know Dileep fetches data from a database from within a mapping script
kind regards
henk-jan
Jim Qiu wrote:
> Hi henk-jan,
>
> Do you mean this plugin: demo_databasecommunication_2_0 ?
>
> yes, I find the json database conector within that demo, but it
> seems over-complex for my requirement.
>
> I think some direct SQL statement within the mapping script should
> fix my requirement , but since i did not finding a demo in such way,
> so i send the mail for others' opinion before I dive into.
>
> I will try my idea tomorrow.
>
> regards,
>
> Jim
>
> 2010/7/20 henk-jan ebbers <hjeb...@gmail.com <mailto:hjeb...@gmail.com>>