addColumnsWithSchema method
Future<void>
addColumnsWithSchema({
- required String table,
- required ArrowSchema schema,
- List<
String> ? namespace, - String? branch,
Implementation
Future<void> addColumnsWithSchema({required String table, required ArrowSchema schema, List<String>? namespace, String? branch}) async {
final output = await _invokeContent(
"add_columns",
BinaryContent(
data: ArrowIpcSchema.fromSchema(schema).bytes,
headers: {"table": table, "namespace": namespace, "branch": branch, "content_type": _arrowIpcStreamMimeType},
),
);
if (output is! EmptyContent) {
throw RoomServerException("unexpected return type from datasets.add_columns call");
}
}