Skip to content

Commit

Permalink
SqlHydra.Query v2.5.1 - fixed #93 issue with generated backticks with…
Browse files Browse the repository at this point in the history
… `public` keyword as a schema.
  • Loading branch information
JordanMarr committed Jun 8, 2024
1 parent 372f102 commit 910da6b
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions src/SqlHydra.Cli/SchemaGenerator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ let generateHydraReaderClass (db: Schema) (rdrCfg: ReadersConfig) (app: AppInfo)

for table in allTables do
// let lazyPersonEmailAddress = lazy (Person.Readers.EmailAddressReader(reader, buildGetOrdinal 5 typeof<Person.EmailAddress))
// let lazypublicmigration = lazy (``public``.Readers.migrationReader(reader, buildGetOrdinal typeof<``public``.migration>))
Value(
$"lazy{backticks table.Schema}{backticks table.Name}",
ConstantExpr(Unquoted $"lazy ({backticks table.Schema}.Readers.{backticks table.Name}Reader(reader, buildGetOrdinal typeof<{table.Schema}.{table.Name}>))")
$"lazy{table.Schema}{table.Name}",
ConstantExpr(Unquoted $"lazy ({backticks table.Schema}.Readers.{backticks table.Name}Reader(reader, buildGetOrdinal typeof<{backticks table.Schema}.{table.Name}>))")
)

for table in allTables do
Expand Down
2 changes: 1 addition & 1 deletion src/SqlHydra.Cli/SqlHydra.Cli.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>2.5.0</Version>
<Version>2.5.1</Version>
<WarningsAsErrors>
<!-- Incomplete pattern matches on this expression. -->
FS0025
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Npgsql/AdventureWorksNet6.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Npgsql` -- v2.5.0.
// This code was generated by `SqlHydra.Npgsql` -- v2.5.1.
namespace Npgsql.AdventureWorksNet6

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Npgsql/AdventureWorksNet8.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Npgsql` -- v2.5.0.
// This code was generated by `SqlHydra.Npgsql` -- v2.5.1.
namespace Npgsql.AdventureWorksNet8

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Oracle/AdventureWorksNet6.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Oracle` -- v2.5.0.
// This code was generated by `SqlHydra.Oracle` -- v2.5.1.
namespace Oracle.AdventureWorksNet6

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Oracle/AdventureWorksNet8.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Oracle` -- v2.5.0.
// This code was generated by `SqlHydra.Oracle` -- v2.5.1.
namespace Oracle.AdventureWorksNet8

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/SqlServer/AdventureWorksNet6.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.SqlServer` -- v2.5.0.
// This code was generated by `SqlHydra.SqlServer` -- v2.5.1.
namespace SqlServer.AdventureWorksNet6

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/SqlServer/AdventureWorksNet8.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.SqlServer` -- v2.5.0.
// This code was generated by `SqlHydra.SqlServer` -- v2.5.1.
namespace SqlServer.AdventureWorksNet8

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Sqlite/AdventureWorksNet6.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Sqlite` -- v2.5.0.
// This code was generated by `SqlHydra.Sqlite` -- v2.5.1.
namespace Sqlite.AdventureWorksNet6

open SqlHydra
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Sqlite/AdventureWorksNet8.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This code was generated by `SqlHydra.Sqlite` -- v2.5.0.
// This code was generated by `SqlHydra.Sqlite` -- v2.5.1.
namespace Sqlite.AdventureWorksNet8

open SqlHydra
Expand Down

0 comments on commit 910da6b

Please sign in to comment.