Skip to content
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

style: format code with dotnet-format #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 28 additions & 27 deletions src/Migrations/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,39 @@ public static class Constants
{
public const string CreateOrAlterFunctionPattern = """
CREATE OR ALTER FUNCTION {0}.{1}({2})
RETURNS {3}
AS
BEGIN
{4}
END
RETURNS {3}
AS
BEGIN
{4}
END
""";
public const string CreateOrAlterViewPattern = """
CREATE OR ALTER VIEW {0}.{1}
AS
{2}
""";
CREATE OR ALTER VIEW {0}.{ 1}
AS
{ 2}
""";
public const string CreateOrAlterProcedurePattern = """
CREATE OR ALTER PROCEDURE {0}.{1} {2}
AS
BEGIN
{3}
END
CREATE OR ALTER PROCEDURE {0}.{ 1}
{ 2}
AS
BEGIN
{3}
END
""";

public const string Function = "FUNCTION";
public const string Procedure = "PROCEDURE";
public const string View = "VIEW";
public const string DropFunctionIfExistsPattern = "DROP FUNCTION IF EXISTS {0}.{1}";
public const string DropProcedureIfExistsPattern = "DROP PROCEDURE IF EXISTS {0}.{1}";
public const string DropViewIfExistsPattern = "DROP VIEW IF EXISTS {0}.{1}";
public const string DropSomethingIfExistsPattern = "DROP {0} IF EXISTS {1}.{2}";
public static readonly IReadOnlyDictionary<Type, string> ClrTypeToSqlTypeMap = new Dictionary<
Type,
string
>
public const string Function = "FUNCTION";
public const string Procedure = "PROCEDURE";
public const string View = "VIEW";

public const string DropFunctionIfExistsPattern = "DROP FUNCTION IF EXISTS {0}.{1}";
public const string DropProcedureIfExistsPattern = "DROP PROCEDURE IF EXISTS {0}.{1}";
public const string DropViewIfExistsPattern = "DROP VIEW IF EXISTS {0}.{1}";
public const string DropSomethingIfExistsPattern = "DROP {0} IF EXISTS {1}.{2}";

public static readonly IReadOnlyDictionary<Type, string> ClrTypeToSqlTypeMap = new Dictionary<
Type,
string
>
{
{ typeof(string), NVarCharMax.ShortName },
{ typeof(int), Int.ShortName },
Expand Down
Loading