addColumnsWithSchema method

Future<void> addColumnsWithSchema({
  1. required String table,
  2. required ArrowSchema schema,
  3. List<String>? namespace,
  4. 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");
  }
}