'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#AdditionalJar: duckdb_jdbc-1.0.0
#End Region
Sub Process_Globals
Private SQL As SQL
End Sub
Sub AppStart (Args() As String)
Example
StartMessageLoop
End Sub
Sub Example
Try
SQL.Initialize("org.duckdb.DuckDBDriver", "jdbc:duckdb:")
Dim rs As ResultSet = SQL.ExecQuery("SELECT current_timestamp")
Do While rs.NextRow
Log(rs.GetString2(0))
Loop
Catch
Log(LastException)
End Try
End Sub