Re: Execute an external program

2018-04-03 Thread kurt greaves
Correct. Note that both triggers and CDC aren't widely used yet so be sure
to test.

On 28 March 2018 at 13:02, Earl Lapus  wrote:

>
> On Wed, Mar 28, 2018 at 8:39 AM, Jeff Jirsa  wrote:
>
>> CDC may also work for newer versions, but it’ll happen after the mutation
>> is applied
>>
>> --
>> Jeff Jirsa
>>
>>
> "after the mutation is applied" means after the query is executed?
>
>


Re: Execute an external program

2018-03-28 Thread Earl Lapus
On Wed, Mar 28, 2018 at 8:39 AM, Jeff Jirsa  wrote:

> CDC may also work for newer versions, but it’ll happen after the mutation
> is applied
>
> --
> Jeff Jirsa
>
>
"after the mutation is applied" means after the query is executed?


Re: Execute an external program

2018-03-28 Thread Earl Lapus
On Wed, Mar 28, 2018 at 8:31 AM, Christophe Schmitz <
christo...@instaclustr.com> wrote:

>
> You probably want to check Cassandra triggers:
> http://cassandra.apache.org/doc/latest/cql/triggers.html
> You can write arbitrary code that is called for the DML against your table.
>
>
>
 Thanks, I'll check this out.


Re: Execute an external program

2018-03-27 Thread Jeff Jirsa
CDC may also work for newer versions, but it’ll happen after the mutation is 
applied 

-- 
Jeff Jirsa


> On Mar 27, 2018, at 5:31 PM, Christophe Schmitz <christo...@instaclustr.com> 
> wrote:
> 
> Hi Earl,
> 
> You probably want to check Cassandra triggers:
> http://cassandra.apache.org/doc/latest/cql/triggers.html
> You can write arbitrary code that is called for the DML against your table.
> 
> Cheers,
> 
> Christophe
> 
> 
>> On 28 March 2018 at 10:58, Earl Lapus <earl.la...@gmail.com> wrote:
>> Hi All,
>> 
>> I may be over the edge here, but is there a way to execute an external 
>> program if a new row is added or if an existing row is updated on a table?
>> 
>> Cheers,
>> Earl
>> 
>> -- 
>> There are seven words in this sentence.
> 
> 
> 
> -- 
> Christophe Schmitz - VP Consulting
> AU: +61 4 03751980 / FR: +33 7 82022899
> 
> Read our latest technical blog posts here. This email has been sent on behalf 
> of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This email 
> and any attachments may contain confidential and legally privileged 
> information.  If you are not the intended recipient, do not copy or disclose 
> its content, but please reply to this email immediately and highlight the 
> error to the sender and then immediately delete the message.


Re: Execute an external program

2018-03-27 Thread Christophe Schmitz
Hi Earl,

You probably want to check Cassandra triggers:
http://cassandra.apache.org/doc/latest/cql/triggers.html
You can write arbitrary code that is called for the DML against your table.

Cheers,

Christophe


On 28 March 2018 at 10:58, Earl Lapus <earl.la...@gmail.com> wrote:

> Hi All,
>
> I may be over the edge here, but is there a way to execute an external
> program if a new row is added or if an existing row is updated on a table?
>
> Cheers,
> Earl
>
> --
> There are seven words in this sentence.
>



-- 

*Christophe Schmitz - **VP Consulting*

AU: +61 4 03751980 / FR: +33 7 82022899

<https://www.facebook.com/instaclustr>   <https://twitter.com/instaclustr>
<https://www.linkedin.com/company/instaclustr>

Read our latest technical blog posts here
<https://www.instaclustr.com/blog/>. This email has been sent on behalf
of Instaclustr Pty. Limited (Australia) and Instaclustr Inc (USA). This
email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy
or disclose its content, but please reply to this email immediately and
highlight the error to the sender and then immediately delete the message.


Execute an external program

2018-03-27 Thread Earl Lapus
Hi All,

I may be over the edge here, but is there a way to execute an external
program if a new row is added or if an existing row is updated on a table?

Cheers,
Earl

-- 
There are seven words in this sentence.