LTPDA Toolbox | contents | ![]() ![]() |
Connection to an LTPDA Repository is normally carried out as part of other processes. For example, when submitting an object to the repository using the submit command, the user is prompted to login to the chosen repository.
It is also possible to connect to a repository using a script interface. The result is a connection object which can be passed to other methods (for example, submit), thus allowing the construction of more automated procedures for interacting with repositories.
To connect to a repository using the script interface, us the command utils.jmysql.connect. It takes the following input arguments:
hostname | A hostname for the repository |
dbname | A database name to connect to |
username | [optional] A username to connect with |
username | [optional] A password to connect with |
>> conn.closeConnection
![]() |
What is an LTPDA Repository | Submitting LTPDA objects to a repository | ![]() |
©LTP Team