-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[DBOPS-31] Add CSV importer/exporter to DbSeeder #6534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
New Issues (16)Checkmarx found the following issues in this Pull Request
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6534 +/- ##
=======================================
Coverage 52.27% 52.27%
=======================================
Files 1909 1909
Lines 84598 84598
Branches 7558 7558
=======================================
Hits 44223 44223
Misses 38659 38659
Partials 1716 1716 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| using var command = new NpgsqlCommand(query, _connection); | ||
| command.Parameters.AddWithValue("tableName", tableName); | ||
|
|
||
| using var reader = command.ExecuteReader(); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| using var command = new NpgsqlCommand(query, _connection); | ||
| command.Parameters.AddWithValue("tableName", tableName); | ||
|
|
||
| using var reader = command.ExecuteReader(); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| using var command = new NpgsqlCommand(query, _connection); | ||
| command.Parameters.AddWithValue("tableName", tableName); | ||
|
|
||
| using var reader = command.ExecuteReader(); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| query += " ORDER BY TABLE_NAME"; | ||
|
|
||
| using var command = new SqlCommand(query, _connection); | ||
| using var reader = command.ExecuteReader(); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| query += " ORDER BY TABLE_NAME"; | ||
|
|
||
| using var command = new SqlCommand(query, _connection); | ||
| using var reader = command.ExecuteReader(); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
|
|
||
| importer.DisableForeignKeys(); | ||
|
|
||
| var csvFiles = Directory.GetFiles(_config.CsvSettings.OutputDir, "*.csv"); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
|
|
||
| importer.DisableForeignKeys(); | ||
|
|
||
| var csvFiles = Directory.GetFiles(_config.CsvSettings.OutputDir, "*.csv"); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| var reporter = new VerificationReporter(_loggerFactory.CreateLogger<VerificationReporter>()); | ||
| reporter.StartVerification(); | ||
|
|
||
| var csvFiles = Directory.GetFiles(_config.CsvSettings.OutputDir, "*.csv"); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| var reporter = new VerificationReporter(_loggerFactory.CreateLogger<VerificationReporter>()); | ||
| reporter.StartVerification(); | ||
|
|
||
| var csvFiles = Directory.GetFiles(_config.CsvSettings.OutputDir, "*.csv"); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical
| var reporter = new VerificationReporter(_loggerFactory.CreateLogger<VerificationReporter>()); | ||
| reporter.StartVerification(); | ||
|
|
||
| var csvFiles = Directory.GetFiles(_config.CsvSettings.OutputDir, "*.csv"); |
Check failure
Code scanning / Checkmarx One
Second Order SQL Injection Critical



🎟️ Tracking
https://bitwarden.atlassian.net/browse/DBOPS-31
📔 Objective
Adding CSV import/export logic. Export works from SQL server, import works with SQL Server, Postgres, MariaDB, and Sqlite.
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes