demetrixbio / FSharp.Data.Npgsql

F# type providers to support statically typed access to input parameters and result set of sql statement in idiomatic F# way. Data modifications via statically typed tables.
Apache License 2.0
127 stars 16 forks source link

ConfigType parameter missing in latest version #104

Closed sandeepc24 closed 2 years ago

sandeepc24 commented 2 years ago

I have been using ConfigType = ConfigType.Environment to read connection string from environment, now it is not there, how do I read connection string from environment?

sandeep-eroad commented 2 years ago

It looks like @kerams removed the config type here - https://github.com/demetrixbio/FSharp.Data.Npgsql/commit/e0962f6d9aff1881e762a9a7be2fb7d6b4c50247?diff=split

Not sure why, is there a reason behind this @kerams ?

sandeep-eroad commented 2 years ago

Without ConfigType we will not be able to upgrade to latest version as all our infrastructure relies on setting different connection string for different environments.

kerams commented 2 years ago

I removed ConfigType in my diverged fork of this repo because I had no use for it. All the changes were later merged in back here.

piaste commented 2 years ago

@sandeepc24

Without ConfigType we will not be able to upgrade to latest version as all our infrastructure relies on setting different connection string for different environments.

We use FSharp.Data.LiteralProviders to read TP parameters from the environment, it works really well. You can also read from text files if you want.

sandeepc24 commented 2 years ago

Thanks, that works like a charm!