Skip to content

Commit d14f154

Browse files
committed
add single property to postgres result
1 parent 7e34871 commit d14f154

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/tables/base_tables.dart

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ abstract class TableConstants {
2424
extension FuturePostgreSQL on Future<PostgreSQLResult> {
2525
Future<T> singleOrNull<T>(FutureOr<T> Function(PostgreSQLResultRow row) cb) =>
2626
then((value) => value.singleOrNull(cb));
27+
Future<PostgreSQLResultRow> get single => then((value) => value.single);
2728
}
2829

2930
extension PostgreSQLResultExt on PostgreSQLResult {

0 commit comments

Comments
 (0)