Skip to content

Instantly share code, notes, and snippets.

View cwdesautels's full-sized avatar

Carl Desautels cwdesautels

View GitHub Profile
@cwdesautels
cwdesautels / H2RollbackTest.java
Last active August 29, 2015 14:01
Using commit / rollback
package h2;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.h2.jdbcx.JdbcDataSource;
public class H2RollbackTest
@cwdesautels
cwdesautels / H2BackupTool.java
Last active January 17, 2022 20:56
Sample using H2's Backup and Restore tools
package h2;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.h2.jdbcx.JdbcDataSource;
import org.h2.tools.Backup;
@cwdesautels
cwdesautels / HANAGetPrimaryKeysTest.java
Last active December 19, 2015 14:19
Demonstrates a problem in the jdbc api for HANA when using meta data to get primary keys.
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
public class HANAGetPrimaryKeysTest
{
public static void main(String[] args)
{
Connection conn = null;
Statement stmnt = null;
@cwdesautels
cwdesautels / BluetoothChat.java
Created August 21, 2012 01:44 — forked from anonymous/gist:3407398
AndroidBluetoothChat
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software