I can't find documentation about it. The SQL type provider I'm using is this one.
This is my code so far trying to use Renci.SshNet
open FSharp.Data.Sql
open Renci.SshNet
open System
let connectionInfo = new Renci.SshNet.PasswordConnectionInfo("159.203.79.134", "root", "322M5m@Q9Exs")
connectionInfo.Timeout <- TimeSpan.FromSeconds(30.0)
let client = new SshClient(connectionInfo)
client.Connect();
let portFw = new ForwardedPortRemote(Convert.ToUInt32(22),"159.203.79.134",Convert.ToUInt32(5432))
client.AddForwardedPort(portFwld)
portFwld.Start()
let [<Literal>] connString = "Host=***;Port=22;Database=testdb;Username=postgres;Password=***;"
let [<Literal>] dbVendor = Common.DatabaseProviderTypes.POSTGRESQL
let [<Literal>] resPath = @"../packages/Npgsql.3.1.9/lib/net451/"
let [<Literal>] indivAmount = 1000
let [<Literal>] useOptTypes = true
type sql = SqlDataProvider<dbVendor,connString,"",resPath,indivAmount,useOptTypes>
[<EntryPoint>]
let main argv =
let ctx = sql.GetDataContext()
printfn "%A" argv
0
But this only hangs.