[vala/staging: 2/2] sqlite3: Bind sqlite3_expanded_sql() and sqlite3_normalised_sql()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 2/2] sqlite3: Bind sqlite3_expanded_sql() and sqlite3_normalised_sql()
- Date: Tue, 6 Aug 2019 08:37:55 +0000 (UTC)
commit 6b1d19db977062bcd465d81b2235acb7405fc470
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]