示例#1
0
        private Task CreateFileWithCreateTableSqlStatement(Json2SqlTransformOptions transformOptions)
        {
            var sqlTablePath      = $"{transformOptions.TableSchema}_{transformOptions.TableName}";
            var targetSqlFileName = $"001-create-table-{sqlTablePath}.sql";
            var targetSqlFilePath = Path.Combine(GenerateSqlDirectoryPath(transformOptions), targetSqlFileName);

            var createTableStatement = _sqlBuilder.BuildCreateTable();

            return(_fileWriter.WriteAllTextAsync(targetSqlFilePath, createTableStatement));
        }