Relative Content

Tag Archive for databaseflutterdart

PostgreSQLConnnection failed while connecting to pgadmin

import ‘package:flutter/foundation.dart’; import ‘package:postgres/postgres.dart’; PostgreSQLConnection(String s, int i, String t, {required String username, required String password}) {} void main() async { // Create an instance of PostgreSQLConnection with connection parameters final connection = PostgreSQLConnection( ‘91.225.104.133’, 5432,// Port number ‘homeservice’, username: ‘homeservice’, password: ‘SrVEJGj2DNQo’, ); try { // Open the connection await connection.open(); print(‘Connected to PostgreSQL […]