Hi All,

I want to use user defined functions in elixir/sqlite.
I found an example in the doc for DB-API 2.0

The example is very short so I will type it out here and can be found at
http://docs.python.org/library/sqlite3.html


import sqlite3
import md5

def md5sum(t0:
        return md5.md5(t).hexdigest()

con = sqlite3.connect(":memory:")
con.create_function("md5",1,md5wum)
cur = con.cursor()'cur.execute("select md5(?),("foo"))
print(cur.fetxhone()[0]

Can this be done in elixir too and how

Tnanks


Frans.

--
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en.

Reply via email to