We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c48ac6e + 7ad1de7 commit 3f0d02cCopy full SHA for 3f0d02c
ext/duckdb/appender.c
@@ -136,6 +136,23 @@ static VALUE appender_end_row(VALUE self) {
136
return self;
137
}
138
139
+/* call-seq:
140
+ * appender.append_bool(val) -> self
141
+ *
142
+ * Appends a boolean value to the current row in the appender.
143
144
+ * require 'duckdb'
145
+ * db = DuckDB::Database.open
146
+ * con = db.connect
147
+ * con.query('CREATE TABLE users (id INTEGER, active BOOLEAN)')
148
+ * appender = con.appender('users')
149
+ * appender
150
+ * .begin_row
151
+ * .append_int32(1)
152
+ * .append_bool(true)
153
+ * .end_row
154
+ * .flush
155
+ */
156
static VALUE appender_append_bool(VALUE self, VALUE val) {
157
rubyDuckDBAppender *ctx;
158
TypedData_Get_Struct(self, rubyDuckDBAppender, &appender_data_type, ctx);
0 commit comments