private async Task CreateTableAsync()

in Amazon.QLDB.DMVSample.LedgerSetup/CreateTables.cs [56:67]


        private async Task CreateTableAsync(string tableName)
        {
            if (!await CheckTableExistsAsync(tableName))
            {
                Console.WriteLine($"Table does not exist, creating table with name {tableName}.");
                await qldbDriver.Execute(async transactionExecutor => await transactionExecutor.Execute($"CREATE TABLE {tableName}"));
            }
            else 
            {
                Console.WriteLine($"Table {tableName} already exists, ignoring.");
            }        
        }