#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#AdditionalJar: ojdbc8.jar
#End Region
Sub Process_Globals
Private SQL As SQL
#Region Database Location
Private DBLocation As String = "DBLocation"
Private DBUsername As String = "DBUsername"
Private DBPassword As String = "DBPassword"
#End Region
End Sub
Sub AppStart (Args() As String)
LogError("---------- XE Database (Oracle) ----------")
SQL.InitializeAsync("Oracle", "oracle.jdbc.driver.OracleDriver", $"jdbc:oracle:thin:@${DBLocation}:1521:xe"$, DBUsername, DBPassword)
SQL.Close
StartMessageLoop
ExitApplication
End Sub
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Sub Oracle_Ready (Success As Boolean)
If Success Then
Dim RS As ResultSet = SQL.ExecQuery("SELECT table_name FROM user_tables ")
Do While RS.NextRow
Log(RS.GetString2(0))
Loop
RS.Close
End If
StopMessageLoop
End Sub