ARRAY_VALUE<T> function
TypedValue<Object>
ARRAY_VALUE<
T>( - List<T> value
)
Implementation
pg.TypedValue ARRAY_VALUE<T>(List<T> value) {
switch (T) {
// ignore: type_literal_in_constant_pattern
case int:
return pg.TypedValue(pg.Type.bigIntegerArray, value);
// ignore: type_literal_in_constant_pattern
case double:
return pg.TypedValue(pg.Type.doubleArray, value);
// ignore: type_literal_in_constant_pattern
case bool:
return pg.TypedValue(pg.Type.booleanArray, value);
// ignore: type_literal_in_constant_pattern
case String:
return pg.TypedValue(pg.Type.textArray, value);
default:
errorSQL("Unknown type of value: $value");
}
}