The following patch adds bindings for Context and Database.create_function(), making it possible to define custom SQL functions in Vala. I have not bound any of those result_text16 functions, as the others are not bound as well, and we should really only use UTF-8 for names.
I also had the idea to change some parts of the current API, for example Callback which currently is public delegate int Callback (int n_columns, [CCode (array_length = false)] string[] values, [CCode (array_length = false)] string[] column_names); and change it to public delegate int Callback ([CCode (array_length_pos = 0.9)] string[] values, [CCode (array_length_pos = 0.9)] string[] column_names); which in my opinion is a bit more clear, and makes it possible to use foreach loops. Another idea is splitting up the top-level integer constants into multiple enums with cname="int". This would make it easier for a programmer to see what he/she is doing. I have done the same in the libarchive bindings, if you want to take a look at how this would look. Regards, Julian Julian Andres Klode (1): sqlite3: Add Context and Database.create_function() bindings. vapi/sqlite3.vapi | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. _______________________________________________ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list