PgConverter class

Converts sql fmt from postgres v2 to v3 and create substitution types for v3:

Example: SELECT * from some where @varName='what' -> SELECT * from some where $1='what'

Constructors

PgConverter.new(String sql, Map<String, Type>? substitutionValues)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sql String
latefinal
types List<PgDataType>?
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

addConverter(PgValue? func(dynamic value)) → void
func return null if value is not processed.
addType(PgDataType? func(Type cls)) → void
Add custom types.
convert(dynamic input) → dynamic