org.h2.samples |
Javadoc package documentation
Standalone sample applications.
|
Java Source File Name | Type | Comment |
Compact.java | Class | This sample application shows how to compact the database files. |
CsvSample.java | Class | 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. |
FileFunctions.java | Class | This sample application shows how to create a user defined function
to read a file from the file system. |
Function.java | Class | This sample application shows how to define and use
custom (user defined) functions in this database. |
FunctionMultiReturn.java | Class | User defined functions can return a result set,
and can therefore be used like a table. |
InitDatabaseFromJar.java | Class | In this example a database is initialized from compressed script in a jar
file. |
MixedMode.java | Class | This sample program opens the same database once in embedded mode,
and once in the server mode. |
Newsfeed.java | Class | The newsfeed application uses XML functions to create an RSS and Atom feed
from a simple SQL script. |
SecurePassword.java | Class | This example shows how to secure passwords
(both database passwords, and account passwords). |
ShowProgress.java | Class | This example application implements a database event listener. |
ShutdownServer.java | Class | This very simple sample application stops a H2 TCP server
if it is running. |
SQLInjection.java | Class | SQL Injection is a common security vulnerability for applications that use
database. |
TriggerSample.java | Class | This sample application shows how to use database triggers. |