Re: [h2] Re: Define a limit size for a table

2018-06-07 Thread Noel Grandin
you could do this in a trigger:

http://h2database.com/html/features.html#triggers
​

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


[h2] Re: Define a limit size for a table

2018-06-07 Thread Fábio Franco da Silva
Ok, I thought there was some built-in feature that checks some conditions 
and triggers an action that could I can remove old data.

That's ok, today I have a process that finds the old data and removes it.

Thank you so much.

On Thursday, June 7, 2018 at 8:51:55 PM UTC-3, Adam McMahon wrote:
>
> You can easily handle this at the application level by checking the size 
> of table before insert. 

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.


[h2] Define a limit size for a table

2018-06-07 Thread Adam McMahon
You can easily handle this at the application level by checking the size of 
table before insert. 

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.