encode method

  1. @override
String encode(
  1. dynamic value,
  2. String? type, {
  3. String? connectionName,
})
override

Convert an object to a string representation to use in a sql query. Be very careful to escape your strings correctly. If you get this wrong you will introduce a sql injection vulnerability. Consider using the provided encodeString function.

Implementation

@override
String encode(value, String? type, {String? connectionName})
  => encodeValue(value, type, connectionName: connectionName);