APITable Docs
DataBus

API Reference

Bindings

BindingRustDescriptionStatus
get_datasheet_pack→jsonDataFunctionsManager::get_datasheet_pack →
get_records
add_fieldsDataFunctionsManager::add_fields(Adds fields to a data bundle managerGood
add_recordsDataFunctionsManager::add_recordsAdds records to a data bundle managerGood
set_recordsDataFunctionsManager::set_recordsSets records in a data bundle managerGood
set_field_attrDataFunctionsManager::set_field_attrSets attributes for a field in a data bundle managerGood
paste_set_fieldsDataFunctionsManager::paste_set_fieldsPastes and sets fields in a data bundle managerGood
paste_set_recordsDataFunctionsManager::paste_set_recordsPastes and sets records in a data bundle managerGood
move_viewsDataFunctionsManager::move_viewsMoves views in a data bundle managerGood
modify_viewsDataFunctionsManager::modify_viewsModifies views in a data bundle managerGood
delete_viewsDataFunctionsManager::delete_viewsDeletes views from a data bundle managerGood
add_viewsDataFunctionsManager::add_viewsAdds views to a data bundle managerGood
move_rowDataFunctionsManager::move_rowMoves a row in a data bundle managerGood
delete_recordsDataFunctionsManager::delete_recordsDeletes records from a data bundle managerGood
move_columnDataFunctionsManager::move_columnMoves a column in a data bundle managerGood
delete_fieldDataFunctionsManager::delete_fieldDeletes a field from a data bundle managerGood
set_sort_infoDataFunctionsManager::set_sort_infoSets sort information for a data bundle managerGood
set_row_heightDataFunctionsManager::set_row_heightSets the height of a row in a data bundle managerGood
set_auto_head_heightDataFunctionsManager::set_auto_head_heightSets the auto head height in a data bundle managerGood
set_columns_propertyDataFunctionsManager::set_columns_propertySets the properties of columns in a data bundle managerGood
set_view_filterDataFunctionsManager::set_view_filterSets a filter for a view in a data bundle managerGood
set_view_lock_infoDataFunctionsManager::set_view_lock_infoSets lock information for a view in a data bundle managerGood
set_view_frozen_column_countDataFunctionsManager::set_view_frozen_column_countSets the number of frozen columns for a view in a data bundle managerGood
set_groupDataFunctionsManager::set_groupSets a group in a data bundle managerGood
set_gallery_styleDataFunctionsManager::set_gallery_styleSets a gallery style in a data bundle managerGood
set_gantt_styleDataFunctionsManager::set_gantt_styleSets a Gantt style in a data bundle managerGood
set_org_chart_styleDataFunctionsManager::set_org_chart_styleSets an organization chart style in a data bundle managerGood
set_calendar_styleDataFunctionsManager::set_calendar_styleSets a calendar style in a data bundle managerGood
fill_data_to_cellsDataFunctionsManager::fill_data_to_cellsFills data into cells in a data bundle managerGood
fix_consistencyDataFunctionsManager::fix_consistencyFixes data consistency issues in a data bundle managerGood
system_set_recordsDataFunctionsManager::system_set_recordsSets records in the middle layer to fix data consistency issuesGood
system_set_field_attrDataFunctionsManager::system_set_field_attrSets attributes for fields in the middle layer to fix data consistency issuesGood
set_kanban_styleDataFunctionsManager::set_kanban_styleSets a Kanban style in a data bundle managerGood
insert_commentDataFunctionsManager::insert_commentInserts a comment into a recordGood
update_commentDataFunctionsManager::update_commentUpdates a comment in a recordGood
delete_commentDataFunctionsManager::delete_commentDeletes a comment from a recordGood
system_correct_commentDataFunctionsManager::system_correct_commentCorrects the time in a commentGood
rollbackDataFunctionsManager::rollbackRolls back a snapshotGood
add_widget_panelDataFunctionsManager::add_widget_panelAdds a widget panel to adata bundle managerGood
remove_widget_panelDataFunctionsManager::remove_widget_panelRemoves a widget panel from a data bundle managerGood
modify_widget_panelDataFunctionsManager::modify_widget_panelModifies a widget panel in a data bundle managerGood
set_widget_panel_dataDataFunctionsManager::set_widget_panel_dataSets data for a widget panel in a data bundle managerGood
set_widget_panel_styleDataFunctionsManager::set_widget_panel_styleSets a style for a widget panel in a data bundle managerGood

Use cases

If we want to export a .tablebundle?

loader = MySQLLoader()
saver = TableBundleSaver()
export_data_bus = new DataBus(loader=loader, saver=saver)
export_database = export_data_bus.getDatabase("spcA")
export_data_bus.save("./a.tablebundle")

If we want to import a .tablebundle?

table_bundle = TableBundle::load("./a.tablebundle")

loader = MySQLLoader() // no TableBundleLoader
saver = MySQLSaver()
import_data_bus = new DataBus(loader=loader, saver=saver)
import_database = export_data_bus.getDatabase("spcA")

TabuleBundleDataBusHelper.process(from_table_bundle, to_data_bus) // run addRecords

\

On this page