catalogTables method

Uint8List? catalogTables(
  1. int connectionId, {
  2. String catalog = '',
  3. String schema = '',
})

Queries the database catalog for table information.

The connectionId must be a valid active connection. The catalog and schema parameters filter results. Empty strings match all values.

Returns binary result data on success, null on failure.

Implementation

Uint8List? catalogTables(
  int connectionId, {
  String catalog = '',
  String schema = '',
}) {
  return _withUtf8Pair(
    catalog,
    schema,
    (ffi.Pointer<bindings.Utf8> cPtr, ffi.Pointer<bindings.Utf8> sPtr) =>
        _withConn(
      connectionId,
      (int conn) => callWithBuffer(
        (buf, bufLen, outWritten) => _bindings.odbc_catalog_tables(
          conn,
          cPtr,
          sPtr,
          buf,
          bufLen,
          outWritten,
        ),
      ),
    ),
  );
}