Re: [sqlite] Standalone Lua regex that can be used in sqlite

2012-07-05 Thread Petite Abeille

On Jul 4, 2012, at 11:00 AM, Domingo Alvarez Duarte wrote:

> I did a modification to the LUA regex code to allow using it without
> LUA dependency so it can be used with sqlite as regex function.

Well done. Lua [1] and SQLite are made for each other :)

[1] http://www.lua.org/about.html#name
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Standalone LUA regex that can be used in sqlite

2012-07-05 Thread Jay A. Kreibich
On Wed, Jul 04, 2012 at 11:00:55AM +0200, Domingo Alvarez Duarte scratched on 
the wall:
> Hello !
> 
> I did a modification to the LUA regex code to allow using it without
> LUA dependency so it can be used with sqlite as regex function.

  Very handy!

> It's very light and small thus a good candidate to be included on sqlite.

  It's a very useful thing to have around, but understand it is extremely
  unlikely that the code will ever be part of the SQLite code base.  The
  difference in licenses makes this almost impossible.

> If you are interested on it you can download it here
> http://code.google.com/p/lua-regex-standalone/ , it's released under
> the same licence of LUA (MIT license).

  I would suggest making the sqlite3-lua-regex.c file a full-blown
  extension.  If you're careful about how you build the file, the
  code can be compiled as a static library, or as a dynamic extension.

  For examples on how to do this, have a look at the chapter 9
  examples from "Using SQLite."  The code can be downloaded here:
  http://examples.oreilly.com/9780596521196/



  There are also several extensions here, of varying quality:
  http://www.sqlite.org/contrib/



  Also see:

  sqlite3_auto_extension()
  http://www.sqlite.org/c3ref/auto_extension.html

  sqlite3_load_extension()
  http://www.sqlite.org/c3ref/load_extension.html



-j
  
-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Standalone LUA regex that can be used in sqlite

2012-07-04 Thread Domingo Alvarez Duarte
Hello !

I did a modification to the LUA regex code to allow using it without
LUA dependency so it can be used with sqlite as regex function.

It's very light and small thus a good candidate to be included on sqlite.

If you are interested on it you can download it here
http://code.google.com/p/lua-regex-standalone/ , it's released under
the same licence of LUA (MIT license).
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users