columnIndex method

int columnIndex(
  1. String column
)

Implementation

int columnIndex(String column) {
  for (int i = 0; i < columns; i++) {
    if (columnNames[i] == column) return i;
  }
  throw LibPqException("Column ${column} not found!");
}