Closed JordanMarr closed 1 year ago
@isaacabraham:
SqlHydra.* v1.1.1 has just been published to fix this issue. The CLI first-time run wizard has been greatly simplified:
After getting the required fields (connection string, filename, namespace), it now only asks you to "Select a use case:" with the following options:
It then sets all the configuration defaults accordingly (instead of asking you a bunch of random questions). The second and third options will not generate the SqlHydra.Query specific attributes.
You fix your config by either:
sqlhydra-mssql
(or whichever variant you are using) again.[sqlhydra_query_integration]
provider_db_type_attributes = false
Issue
(Raised by @isaacabraham)
Table records generated by SqlHydra may contain
SqlHydra.ProviderDbType
attributes. This attribute is declared in theSqlHydra.Query
package and is added to generated types to designate database specific parameter types forSqlHydra.Query
to use when creating query parameters.Proposed Solution
Add a new configuration option,
provider_db_type_attributes
, to the .toml config file under the[sqlhydra_query_integration]
section to allow users to exclude the[<ProviderDbType>]
attributes used bySqlHydra.Query
. (This will default to true if not present.)Ex: