[vala/0.44] sqlite3: Bind sqlite3_expanded_sql() and sqlite3_normalised_sql()



commit 13a5b9ab64c1abec5497301123479d61cf185288
Author: Michael Gratton <mike vee net>
Date:   Mon Aug 5 23:15:27 2019 +1000

    sqlite3: Bind sqlite3_expanded_sql() and sqlite3_normalised_sql()

 vapi/sqlite3.vapi | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index 07a16102f..fa65f9046 100644
--- a/vapi/sqlite3.vapi
+++ b/vapi/sqlite3.vapi
@@ -397,6 +397,16 @@ namespace Sqlite {
                public unowned string column_table_name (int col);
                public unowned string column_origin_name (int col);
                public unowned string sql ();
+               [CCode (cname = "vala_sqlite3_expanded_sql")]
+               public string? expanded_sql () {
+                       string* sqlite = this._expanded_sql ();
+                       string? sql = sqlite;
+                       Sqlite.Memory.free ((void*) sqlite);
+                       return sql;
+               }
+               [CCode (cname = "sqlite3_expanded_sql")]
+               private string? _expanded_sql ();
+               public unowned string normalised_sql ();
        }
 
        namespace Memory {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]