ph method

String ph(
  1. String key
)

Returns the placeholder string for key based on paramStyle.

@key for DbParamStyle.named (PostgreSQL), :key for DbParamStyle.colon (MySQL).

Implementation

String ph(String key) => paramStyle == DbParamStyle.colon ? ':$key' : '@$key';