Rob / scratch /dump_settings.cs
danylokhodus's picture
Fix drone routing logic with node exclusion and improve database connection stability
ddb08ef
Raw
History Blame Contribute Delete
807 Bytes
using System;
using System.IO;
using Microsoft.Data.Sqlite;
class Program {
static void Main() {
string dbPath = @"e:\Dodikuser\GovnoNURE\Rob_Delivery\Backend\Rob\RobDeliveryAPI\RobDelivery.db";
using (var connection = new SqliteConnection($"Data Source={dbPath}")) {
connection.Open();
var command = connection.CreateCommand();
command.CommandText = "SELECT * FROM SystemSettings";
using (var reader = command.ExecuteReader()) {
while (reader.Read()) {
for (int i = 0; i < reader.FieldCount; i++) {
Console.Write($"{reader.GetName(i)}: {reader.GetValue(i)} | ");
}
Console.WriteLine();
}
}
}
}
}