Created
June 23, 2019 11:38
-
-
Save jTakasuRyuji/8005a2ed5ca17ce409fdde46c4b94045 to your computer and use it in GitHub Desktop.
NPGSQL+VB接続テスト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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