2 The ODBC layer
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog ODBC Interface
        • The ODBC layer
          • Global configuration
          • Connection management
          • Running SQL queries
          • Transaction management
          • Accessing the database dictionary
          • Getting more information
            • odbc_statistics/1
            • odbc_debug/1
          • Representing SQL data in Prolog
          • Errors and warnings
          • ODBC implementations
          • Remaining issues

2.6 Getting more information

odbc_statistics(?Key)
Get statistical data on the ODBC interface. Currently defined keys are:
statements(Created, Freed)
Number of SQL statements that have been Created and Freed over all connections. Statements executed with odbc_query/[2-3] increment Created as the query is created and Freed if the query is terminated due to deterministic success, failure, cut or exception. Statements created with odbc_prepare/[4-5] are freed by odbc_free_statement/1 or due to a fatal error with the statement.
odbc_debug(+Level)
Set the verbosity-level to Level. Default is 0. Higher levels make the system print debugging messages.