diff --git a/tests/SqlProvider.Tests/scripts/PGSqlNet8MacOs.fsx b/tests/SqlProvider.Tests/scripts/PGSqlNet8MacOs.fsx new file mode 100644 index 00000000..ee07c151 --- /dev/null +++ b/tests/SqlProvider.Tests/scripts/PGSqlNet8MacOs.fsx @@ -0,0 +1,32 @@ +#r "nuget:Npgsql" +#r "nuget:SQLProvider" + +open Npgsql +open FSharp.Data.Sql + + +[] +module Settings = + + [] + let dbVendor = Common.DatabaseProviderTypes.POSTGRESQL + + [] + let connString = + // spinup a local docker PGSQL, e.g. with docker compose with all set to postgres + "Host=localhost;Username=postgres;Password=postgres;Database=postgres" + + [] + let owner = "public, admin, references" + + [] + let resPath = "~/.nuget/packages/npgsql/8.0.2/lib/net8.0" + + [] + let useOptTypes = Common.NullableColumnType.NO_OPTION + +type sql = + SqlDataProvider + +let ctxFactory connectionStringRuntime = + sql.GetDataContext(connectionStringRuntime: string)