Package org.h2.samples
package org.h2.samples
Standalone sample applications.
-
ClassesClassDescriptionThis sample application shows how to cache prepared statements.This sample application shows how to compact the database files.This sample application shows how to manually create an encrypted and compressed script file.This sample application shows how to use the CSV tool to write CSV (comma separated values) files, and how to use the tool to read such files.Demonstrates the benefit of using the CREATE TABLE ...This sample application shows how to create a user defined function to read a file from the file system.This sample application shows how to define and use custom (user defined) functions in this database.User defined functions can return a result set, and can therefore be used like a table.A very simple class that shows how to load the driver, create a database, create a table, and insert some data.In this example a database is initialized from compressed script in a jar file.This sample program opens the same database once in embedded mode, and once in the server mode.The newsfeed application uses XML functions to create an RSS and Atom feed from a simple SQL script.This sample application shows how to create and use a read-only database in a zip file.This sample application show how to emulate per-row access rights so that each user can only access rows created by the given user.This example shows how to secure passwords (both database passwords, and account passwords).This example application implements a database event listener.This very simple sample application stops a H2 TCP server if it is running.SQL Injection is a common security vulnerability for applications that use database.This sample application shows how to pass data to a trigger.This sample application shows how to use database triggers.This class is a simple trigger implementation.This sample application shows how to use triggers to create updatable views.