The first stage in using RekallPYDBI is to connect to the server database. This is shown in the example below, and uses the connect function. The first argument can be any object in the form or report. For instance, if the code is in the onClick event function of a button then use the button as the argument ( The first argument is needed in case you have opened multiple databases in the same instance of Rekall. ) . The second argument is the server name used to identify the server database.
import RekallPYDBI connection = RekallPYDBI.connect (object, server) |
You now have a connection to the same server database. The next step is to create a cursor, which is an object which can execute SQL queries.
import RekallPYDBI connection = RekallPYDBI.connect (object, server) cursor = connection.cursor () |