API Reference
Bindings
Binding | Rust | Description | Status |
|---|---|---|---|
get_datasheet_pack→json | DataFunctionsManager::get_datasheet_pack → | ||
get_records | |||
add_fields | DataFunctionsManager::add_fields( | Adds fields to a data bundle manager | Good |
add_records | DataFunctionsManager::add_records | Adds records to a data bundle manager | Good |
set_records | DataFunctionsManager::set_records | Sets records in a data bundle manager | Good |
set_field_attr | DataFunctionsManager::set_field_attr | Sets attributes for a field in a data bundle manager | Good |
paste_set_fields | DataFunctionsManager::paste_set_fields | Pastes and sets fields in a data bundle manager | Good |
paste_set_records | DataFunctionsManager::paste_set_records | Pastes and sets records in a data bundle manager | Good |
move_views | DataFunctionsManager::move_views | Moves views in a data bundle manager | Good |
modify_views | DataFunctionsManager::modify_views | Modifies views in a data bundle manager | Good |
delete_views | DataFunctionsManager::delete_views | Deletes views from a data bundle manager | Good |
add_views | DataFunctionsManager::add_views | Adds views to a data bundle manager | Good |
move_row | DataFunctionsManager::move_row | Moves a row in a data bundle manager | Good |
delete_records | DataFunctionsManager::delete_records | Deletes records from a data bundle manager | Good |
move_column | DataFunctionsManager::move_column | Moves a column in a data bundle manager | Good |
delete_field | DataFunctionsManager::delete_field | Deletes a field from a data bundle manager | Good |
set_sort_info | DataFunctionsManager::set_sort_info | Sets sort information for a data bundle manager | Good |
set_row_height | DataFunctionsManager::set_row_height | Sets the height of a row in a data bundle manager | Good |
set_auto_head_height | DataFunctionsManager::set_auto_head_height | Sets the auto head height in a data bundle manager | Good |
set_columns_property | DataFunctionsManager::set_columns_property | Sets the properties of columns in a data bundle manager | Good |
set_view_filter | DataFunctionsManager::set_view_filter | Sets a filter for a view in a data bundle manager | Good |
set_view_lock_info | DataFunctionsManager::set_view_lock_info | Sets lock information for a view in a data bundle manager | Good |
set_view_frozen_column_count | DataFunctionsManager::set_view_frozen_column_count | Sets the number of frozen columns for a view in a data bundle manager | Good |
set_group | DataFunctionsManager::set_group | Sets a group in a data bundle manager | Good |
set_gallery_style | DataFunctionsManager::set_gallery_style | Sets a gallery style in a data bundle manager | Good |
set_gantt_style | DataFunctionsManager::set_gantt_style | Sets a Gantt style in a data bundle manager | Good |
set_org_chart_style | DataFunctionsManager::set_org_chart_style | Sets an organization chart style in a data bundle manager | Good |
set_calendar_style | DataFunctionsManager::set_calendar_style | Sets a calendar style in a data bundle manager | Good |
fill_data_to_cells | DataFunctionsManager::fill_data_to_cells | Fills data into cells in a data bundle manager | Good |
fix_consistency | DataFunctionsManager::fix_consistency | Fixes data consistency issues in a data bundle manager | Good |
system_set_records | DataFunctionsManager::system_set_records | Sets records in the middle layer to fix data consistency issues | Good |
system_set_field_attr | DataFunctionsManager::system_set_field_attr | Sets attributes for fields in the middle layer to fix data consistency issues | Good |
set_kanban_style | DataFunctionsManager::set_kanban_style | Sets a Kanban style in a data bundle manager | Good |
insert_comment | DataFunctionsManager::insert_comment | Inserts a comment into a record | Good |
update_comment | DataFunctionsManager::update_comment | Updates a comment in a record | Good |
delete_comment | DataFunctionsManager::delete_comment | Deletes a comment from a record | Good |
system_correct_comment | DataFunctionsManager::system_correct_comment | Corrects the time in a comment | Good |
rollback | DataFunctionsManager::rollback | Rolls back a snapshot | Good |
add_widget_panel | DataFunctionsManager::add_widget_panel | Adds a widget panel to adata bundle manager | Good |
remove_widget_panel | DataFunctionsManager::remove_widget_panel | Removes a widget panel from a data bundle manager | Good |
modify_widget_panel | DataFunctionsManager::modify_widget_panel | Modifies a widget panel in a data bundle manager | Good |
set_widget_panel_data | DataFunctionsManager::set_widget_panel_data | Sets data for a widget panel in a data bundle manager | Good |
set_widget_panel_style | DataFunctionsManager::set_widget_panel_style | Sets a style for a widget panel in a data bundle manager | Good |
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