toString method

  1. @override
String toString()
override

Postgresql default style Example: "SELECT * FROM book WHERE title = $1 AND code = $2" Postgres uses $# for placeholders https://www.postgresql.org/docs/9.1/sql-prepare.html

Implementation

//static const PlaceholderIdentifier pgDefault = PlaceholderIdentifier(r'$#');

@override
String toString() {
  switch (this) {
    // case pgDefault:
    //   return 'PlaceholderIdentifier.pgDefault';
    case atSign:
      return 'PlaceholderIdentifier.atSign';
    case onlyQuestionMark:
      return 'PlaceholderIdentifier.onlyQuestionMark';
    // case colon:
    //   return 'PlaceholderIdentifier.colon';
    default:
      return 'PlaceholderIdentifier unknown';
  }
}