fbGetMasterInterface method

IMaster fbGetMasterInterface()

Gets the master interface, which allows to access all other client functionality.

Implementation

IMaster fbGetMasterInterface() {
  if (lib == null) {
    throw FbClientException(
      "Firebird client library not loaded or client already closed.",
    );
  }
  final m = _fbGetMasterInterface();
  if (m == nullptr) {
    throw FbClientException(
      "Cannot access the master interface (NULL returned "
      "by fb_get_master_interface).",
    );
  }
  return IMaster(m);
}