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

EES-5097 Add Processor functions to create data set meta, import to DuckDb and export to Parquet data files #4880

Merged
merged 10 commits into from
May 31, 2024
Merged
Prev Previous commit
Next Next commit
EES-5097 Add DuckDbConnection extension method to allow creating an S…
…qlBuilder with a (non-interpolated) string command
  • Loading branch information
benoutram committed May 31, 2024
commit 12bbeec5ebe181e5d633c7f97b38ce361c34dd90
Original file line number Diff line number Diff line change
@@ -18,6 +18,14 @@ public static DuckDbDapperSqlBuilder SqlBuilder(
return new DuckDbDapperSqlBuilder(connection, command, options);
}

public static DuckDbDapperSqlBuilder SqlBuilder(
this IDuckDbConnection connection,
string command,
InterpolatedSqlBuilderOptions? options = null)
{
return new DuckDbDapperSqlBuilder(connection, command, options);
}

public static DuckDbDapperSqlBuilder SqlBuilder(
this IDuckDbConnection connection,
InterpolatedSqlBuilderOptions options)
Original file line number Diff line number Diff line change
@@ -30,6 +30,15 @@ public DuckDbDapperSqlBuilder(
DbConnection = connection;
}

public DuckDbDapperSqlBuilder(
IDbConnection connection,
string value,
InterpolatedSqlBuilderOptions? options = null)
: base(value, options)
{
DbConnection = connection;
}

protected internal DuckDbDapperSqlBuilder(
IDbConnection connection,
InterpolatedSqlBuilderOptions? options,
Original file line number Diff line number Diff line change
@@ -34,6 +34,13 @@ public DuckDbSqlBuilder(IInterpolatedSql value, InterpolatedSqlBuilderOptions? o
ResetAutoSpacing();
}

public DuckDbSqlBuilder(string value, InterpolatedSqlBuilderOptions? options = null)
: this(options: options, format: null, arguments: null)
{
AppendLiteral(value);
ResetAutoSpacing();
}

protected DuckDbSqlBuilder(
InterpolatedSqlBuilderOptions? options = null,
StringBuilder? format = null,