Sql constructor

Sql(
  1. String sql, {
  2. List<Type<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 TypedValue instances can be used when binding values later.

Implementation

factory Sql(String sql, {List<Type>? types}) = SqlImpl.direct;