import 'dart:io'; import 'package:postgres/postgres.dart'; void main() async { final conn = await Connection.open(Endpoint(host: 'localhost', database: 'cyberhybridhub', username: 'postgres')); final result = await conn.execute('SELECT * FROM question_source_preferences'); for (final row in result) { print(row); } await conn.close(); }