Hi there,
As i understand you are trying to push data to Ape Server when data is
inserted into mysql. Please make note APE is a event driven server.
Either there are system events or you create events by command. In the
instant case your event is generated at mysql side which APE server
has no method of knowing unless you run a process (module) on APE
server which will search for records in mysql. If it find record it
will pick and then broad cast on the channel.
A theoritical example would be
function() {
sql.query('SELECT new_record FROM data WHERE ape_pickup = 0',
function(res, errorNo) {
if(res) {
Broadcast on Channel
sql.query('UPDATE data set ape_pickup =1
}
}.bind(this));
}).periodical(1000*60*2);
On May 13, 1:02 am, "
falexand...@gmail.com" <
falexand...@gmail.com>
wrote:
> Hello,
>
> i am working with APE Engine (
http://www.ape-project.org) and up until
> now i had no actual problem.
>
> The problem is that i would like to use the MySQL module and push data
> to a channel each time a row is inserted into a table.
>
> I've tried to setup a server side module, i created an SQL query but
> data is fetched only when the server boots.
>
> How can i make this work?
>
> I've searched the entire discussion group and the docs but didn't find
> such a thing. Only someone that just said "It's possible"
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to
ape-p...@googlegroups.com
> To unsubscribe from this group, send email to
>
ape-project...@googlegroups.com
> For more options, visit this group athttp://
groups.google.com/group/ape-project?hl=en