Skip to content

Instantly share code, notes, and snippets.

@jTakasuRyuji
Created June 23, 2019 11:38
Show Gist options
  • Select an option

  • Save jTakasuRyuji/8005a2ed5ca17ce409fdde46c4b94045 to your computer and use it in GitHub Desktop.

Select an option

Save jTakasuRyuji/8005a2ed5ca17ce409fdde46c4b94045 to your computer and use it in GitHub Desktop.
NPGSQL+VB接続テスト
'PM> Install-Package Npgsql
Module Module1
Sub Main()
Dim conn_str As String = "Server=127.0.0.1;Port=5432;User ID=oreid;Database=oredb;Password=orepassword;Enlist=true"
Using conn = New Npgsql.NpgsqlConnection(conn_str)
conn.Open()
Console.WriteLine("Connection success!")
End Using
Console.ReadLine()
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment