[vala/wip/mjog/sqlite-statement-updates] vapi: Add missing SQL methods from Sqlite.Statement



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

    vapi: Add missing SQL methods from Sqlite.Statement

 vapi/sqlite3.vapi | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/vapi/sqlite3.vapi b/vapi/sqlite3.vapi
index 07a16102f..c847f0f73 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]