Skip to main content

Module tables

Module tables 

Source
Expand description

Table operations: merge, update, TSV import/export, key deletes, and lookups of table data and references across the open packs and the dependencies.

StructsΒ§

PreparedFilter πŸ”’
A RowFilter ready to check rows: its column index resolved, and its value lowercased if it ignores case.

EnumsΒ§

DeltaMergeOutcome πŸ”’
Result of a delta merge attempt: either a finished file ready to insert, or the conflicts blocking it.
MergeOutcome
Result of merging tables.
PreparedEdit πŸ”’
A RowEdit with its values converted to the types of their columns, and its indexes checked.

FunctionsΒ§

apply_row_edits πŸ”’
Applies prepared row edits to the rows of a table.
copied_value πŸ”’
Returns a copy of a table value for a column of the provided type, converting it if it’s of another type.
decoded_to_json πŸ”’
Returns a table value as JSON: booleans and numbers as themselves, everything else as text.
delta_merge_files πŸ”’
Delta-merges the decoded DB or Loc sources (same type/table) against the vanilla/parent baseline, applying any already-known resolutions. See rpfm_extensions::merge for the merge rules.
expected_value πŸ”’
Returns how the values a column of the provided type accepts are described in errors.
find_in_db πŸ”’
Finds the first row with a value in a column of a table.
find_in_db_files πŸ”’
Finds the first row with a value in a column, among DB files.
find_in_loc_files πŸ”’
Finds the first row with a key, among Loc files.
json_to_decoded πŸ”’
Converts a JSON value to a table value of the provided type.
prepare_row_edits πŸ”’
Converts row edits to the types of their columns, and checks their indexes against the rows the table will have when each one is applied.
references_in_file πŸ”’
Returns every row of a DB file with a value in any of the provided columns.
row_values πŸ”’
Converts values given by column name to the types of their columns.
row_values_by_column πŸ”’
Returns the values of a row of a table, by column name.