In this distribution of Apache Derby, the directory demo/programs/ contains example databases and programs written in Java. Some of the sample programs are used as references in some of the Derby user manuals, see Getting Started with Derby and the Derby Server and Administration Guide. Other programs are simply demonstrations of how to get started using Derby, or how to utilize certain features.
A very simple JDBC application that boots the driver, creates a database, and loads some data. This application can run in both embedded and client/server settings.
Two examples are provided to demonstrate how to obtain an embedded connection and client connections using the Network Server to connect to the same database. An embedded connection is a connection to a database that is booted in the same JVM as the application. Client applications that require a database connection across the network use the network server protocol (DRDA) to connect to the Network Server. This type of connection is referred to as a client connection.
The toursdb
database is provided as an example and demo database to illustrate some
functionality of the Derby RDBMS. Many of the examples in the Derby
documentation use tables that exist in the toursdb
database.
The document describes the tables, the names and types of columns in those tables, and the constraints, indexes, and triggers in the database.
Programs described and modified as part of the activities documented in the Getting Started With Derby manual.
This demo shows how to use user-coded Java functions and procedures inside the Derby engine.
This set of demos contains sample table functions for