On Wed, Apr 22, 2009 at 6:35 AM, Duncan M. McGreggor
<[email protected]> wrote:
>
> I think you're going to love this :-) This is actually one of my
> favorite little features of Storm.
>
> To create a Python Storm function for a database function, all you need
> to do is import NamedFunc, subclass it, and define the function name.
> You can then use it in Storm Python expressions.
>
> For example:
>
> from storm.expr import NamedFunc
>
>
> class CurrentTimestamp(NamedFunc):
>    __slots__ = ()
>    name = "CURRENT_TIMESTAMP"
>
> Hope that helps!

That's wonderful, thanks :)

martin

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to