Skip to content

fix NET8 macos - please try on mac and net8 (not working) #815

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions tests/SqlProvider.Tests/scripts/PGSqlNet8MacOs.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#r "nuget:Npgsql"
#r "nuget:SQLProvider"

open Npgsql
open FSharp.Data.Sql


[<AutoOpen>]
module Settings =

[<Literal>]
let dbVendor = Common.DatabaseProviderTypes.POSTGRESQL

[<Literal>]
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"

[<Literal>]
let owner = "public, admin, references"

[<Literal>]
let resPath = "~/.nuget/packages/npgsql/8.0.2/lib/net8.0"

[<Literal>]
let useOptTypes = Common.NullableColumnType.NO_OPTION

type sql =
SqlDataProvider<DatabaseVendor=dbVendor, ConnectionString=connString, ResolutionPath=resPath, UseOptionTypes=useOptTypes, Owner=owner>

let ctxFactory connectionStringRuntime =
sql.GetDataContext(connectionStringRuntime: string)