aboutsummaryrefslogtreecommitdiff
path: root/qlite/src/statement_builder.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-20 19:27:39 +0100
committerMarvin W <git@larma.de>2017-03-23 16:48:26 +0100
commitef0483765a0fd567f25b1f0af6df04e8973e5624 (patch)
tree9288c239217496774710542b922cdd264e0838cc /qlite/src/statement_builder.vala
parentaca6842c490c52b6460b7d9ebd7cc77eec4b97ef (diff)
downloaddino-ef0483765a0fd567f25b1f0af6df04e8973e5624.tar.gz
dino-ef0483765a0fd567f25b1f0af6df04e8973e5624.zip
Small bug fixes and compatibility with Vala 0.36
Diffstat (limited to 'qlite/src/statement_builder.vala')
-rw-r--r--qlite/src/statement_builder.vala16
1 files changed, 8 insertions, 8 deletions
diff --git a/qlite/src/statement_builder.vala b/qlite/src/statement_builder.vala
index e0055e87..11efb0de 100644
--- a/qlite/src/statement_builder.vala
+++ b/qlite/src/statement_builder.vala
@@ -5,13 +5,13 @@ namespace Qlite {
public abstract class StatementBuilder {
protected Database db;
- public StatementBuilder(Database db) {
+ internal StatementBuilder(Database db) {
this.db = db;
}
- public abstract Statement prepare() throws DatabaseError;
+ internal abstract Statement prepare() throws DatabaseError;
- protected class Field<T> {
+ internal class Field<T> {
public T value;
public Column<T>? column;
@@ -20,29 +20,29 @@ public abstract class StatementBuilder {
this.value = value;
}
- public virtual void bind(Statement stmt, int index) {
+ internal virtual void bind(Statement stmt, int index) {
if (column != null) {
column.bind(stmt, index, value);
}
}
}
- protected class NullField<T> : Field<T> {
+ internal class NullField<T> : Field<T> {
public NullField(Column<T>? column) {
base(column, null);
}
- public override void bind(Statement stmt, int index) {
+ internal override void bind(Statement stmt, int index) {
stmt.bind_null(index);
}
}
- protected class StringField : Field<string> {
+ internal class StringField : Field<string> {
public StringField(string value) {
base(null, value);
}
- public override void bind(Statement stmt, int index) {
+ internal override void bind(Statement stmt, int index) {
stmt.bind_text(index, value);
}
}