System.Data.SQLite supports custom functions in .NET. If you use another shell that does not, change the shell. The latest version is here:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
He was here, but is now part of the main SQLite project:
http://sqlite.phxsoftware.com/
Example:
[SQLiteFunction(Name = "Base64", Arguments = 1, FuncType = FunctionType.Scalar)] class Base64SQLite : SQLiteFunction { public override object Invoke(object[] args) {
If you intend to do a lot of searches for this data, especially wildcard searches, then you better cache the data (use a trigger) and put it in the FTS index.
Samuel neff
source share