Skip to content

Commit

Permalink
Change env prefix to MYSQL_
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-moussawi committed Sep 9, 2022
1 parent 064adcc commit cc0c67c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
- name: Test
run: dotnet test -c Release
env:
MYSQL_HOST: ${{ env.DB_MYSQL_HOST }}
MYSQL_USER: ${{ env.DB_MYSQL_USER }}
MYSQL_DB: ${{ env.DB_MYSQL_DATABASE }}
SQLKATA_MYSQL_HOST: ${{ env.DB_MYSQL_HOST }}
SQLKATA_MYSQL_USER: ${{ env.DB_MYSQL_USER }}
SQLKATA_MYSQL_DB: ${{ env.DB_MYSQL_DATABASE }}

- name: Pack QueryBuilder
if: matrix.os == 'ubuntu-latest'
Expand Down
7 changes: 3 additions & 4 deletions QueryBuilder.Tests/MySqlExecutionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ Color TEXT NULL

db.Statement("DROP TABLE IF EXISTS `Cars`");
}

public QueryFactory SetupDb()
{
var host = System.Environment.GetEnvironmentVariable("MYSQL_HOST");
var user = System.Environment.GetEnvironmentVariable("MYSQL_USER");
var dbName = System.Environment.GetEnvironmentVariable("MYSQL_DB");
var host = System.Environment.GetEnvironmentVariable("SQLKATA_MYSQL_HOST");
var user = System.Environment.GetEnvironmentVariable("SQLKATA_MYSQL_USER");
var dbName = System.Environment.GetEnvironmentVariable("SQLKATA_MYSQL_DB");
var cs = $"server={host};user={user};database={dbName}";
Console.WriteLine($"Using cs: {cs}");

Expand Down

0 comments on commit cc0c67c

Please sign in to comment.