catalogColumns method

Uint8List? catalogColumns(
  1. int connectionId,
  2. String table
)

Queries the database catalog for column information.

The connectionId must be a valid active connection. The table is the table name to query columns for.

Returns binary result data on success, null on failure.

Implementation

Uint8List? catalogColumns(int connectionId, String table) {
  return _withSql(
    table,
    (ffi.Pointer<bindings.Utf8> tablePtr) => callWithBuffer(
      (buf, bufLen, outWritten) => _bindings.odbc_catalog_columns(
        connectionId,
        tablePtr,
        buf,
        bufLen,
        outWritten,
      ),
    ),
  );
}