2.2.1 Finding record locations in a table
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • Managing external tables for SWI-Prolog
        • Managing external tables
          • Accessing a table
            • Finding record locations in a table
              • get_table_attribute/3
              • table_window/3
              • table_start_of_record/4
              • table_previous_record/3
Availability::- use_module(library(table)).(can be autoloaded)
get_table_attribute(+Handle, +Attribute, -Value)
Fetch attributes of the table. Defined attributes:

fileUnify value with the name of the file with which the table is associated.
field(N)Unify value with declaration of n-th (1-based) field.
field_separatorUnify value with the field separator character.
record_separatorUnify value with the record separator character.
key_fieldUnify value with the 1-based index of the field that is sorted or fails if the table contains no sorted fields.
field_countUnify value with the total number of columns in the table.
sizeUnify value with the number of characters in the table-file, not the number of records.
windowUnify value with a term Start - Size, indicating the properties of the current window.