Browse Source

change scan

28062025_02
b.razafimandimbihery 5 months ago
parent
commit
551831df74
  1. 6
      lib/config/DatabaseConfig.dart

6
lib/config/DatabaseConfig.dart

@ -1,8 +1,8 @@
// Config/database_config.dart - Version améliorée // Config/database_config.dart - Version améliorée
class DatabaseConfig { class DatabaseConfig {
static const String host = '10.0.2.2'; // static const String host = '10.0.2.2';
//static const String host = '172.20.10.5'; //static const String host = '172.20.10.5';
// static const String host = 'localhost'; static const String host = 'localhost';
static const int port = 3306; static const int port = 3306;
static const String username = 'root'; static const String username = 'root';
static const String? password = null; static const String? password = null;
@ -19,7 +19,7 @@ class DatabaseConfig {
static const int maxConnections = 10; static const int maxConnections = 10;
static const int minConnections = 2; static const int minConnections = 2;
static bool get isDevelopment => true; static bool get isDevelopment => false;
static Map<String, dynamic> getConfig() { static Map<String, dynamic> getConfig() {
if (isDevelopment) { if (isDevelopment) {

Loading…
Cancel
Save