diff options
Diffstat (limited to 'qlite/src/statement_builder.vala')
-rw-r--r-- | qlite/src/statement_builder.vala | 16 |
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); } } |