Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First we define a queryset and give it a name - BIRT in this case. The database connector can simultaneously connect to multiple databases; each must be defined in its own queryset. The queryset consists of a resource definition and any number of named queries. The resource definition is shown above for MySQL. You will need to modify it as required: change localhost to the name of the machine running MySQL, you can leave the driver unchanged since specify the MySQL driver is included in , change the database connector download. Change the user name and password as required.

Next we define a simple query named 'allCustomers'. Queries can contain four SQL statements (create, retrieve, update, delete). In this example, our query contains just one SQL statement to get the list of customers.

...