Exemplo n.º 1
0
        public void DbInit()
        {
            DatabaseWriter dbWriter   = new DatabaseWriter(_connectionString);
            var            fileReader = new FileReader(_display, _path, _min);
            var            words      = fileReader.ParseText();

            dbWriter.DatabaseInit(words);
            _display.Print("Success");
        }
Exemplo n.º 2
0
        public void DeleteTableByName()
        {
            DatabaseWriter dbWriter = new DatabaseWriter(_connectionString);

            _display.Print("Enter table name: ");
            var tableName = Console.ReadLine();

            dbWriter.DeleteTableData(tableName);
            _display.Print("Success");
        }