public function get_unique_keys($table): array
  {
    $fields = [[]];
    if ( $ks = $this->get_keys($table) ){
      foreach ( $ks['keys'] as $k ){
        if ( $k['unique'] ){
          $fields[] = $k['columns'];
        }
      }
    }
    return array_merge(...$fields);
  }