import { Type } from './Type.js';
/** Maps a database VARCHAR column to a JS `string`. */
export class StringType extends Type {
  getColumnType(prop, platform) {
    return platform.getVarcharTypeDeclarationSQL(prop);
  }
  compareAsType() {
    return 'string';
  }
  ensureComparable() {
    return false;
  }
  getDefaultLength(platform) {
    return platform.getDefaultVarcharLength();
  }
}
