PgSql constructor

PgSql(
  1. String sql, {
  2. List<PgDataType<Object>>? types,
})

The default constructor, sending sql to the Postgres database without any modification.

The types parameter can optionally be used to pass the types of parameters in the query. If they're not set, only PgTypedParameter instances can be used when binding values later.

Implementation

factory PgSql(String sql, {List<PgDataType>? types}) =
    InternalQueryDescription.direct;