Skip to content

Instantly share code, notes, and snippets.

@davecramer
davecramer / symmetric-pv.json
Created January 17, 2019 16:27
kubernetes primary-ds descriptor
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"name": "symmetric-engines",
"labels": {
"name": "symmetric-ds"
}
},
"spec": {

Keybase proof

I hereby claim:

  • I am davecramer on github.
  • I am davecramer (https://keybase.io/davecramer) on keybase.
  • I have a public key ASAvjugRqEE1RIF0U5sm0SOEcbbEw69lBgEikr-tfNKOZwo

To claim this, I am signing this object:

@davecramer
davecramer / UseCase01.sql
Created April 17, 2014 14:53
sql to create function and data for example
CREATE TABLE usecase01 (
testcolumn text[][]
);
CREATE FUNCTION usecase01_get()
RETURNS TABLE
(
testcolumn text[][]
)
AS $$
@davecramer
davecramer / PostgresArrayImpl.java
Created April 17, 2014 14:45
Implementation of PostgresArray
package ca.credativ.jdbc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.simple.SimpleJdbcCall;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.postgresql.jdbc4.Jdbc4Array;
import org.springframework.stereotype.Repository;
@davecramer
davecramer / PostgresArray.java
Created April 17, 2014 14:44
Interface for PostgresArray
package ca.credativ.jdbc;
/**
* Created by davec on 2014-04-16.
*/
public interface PostgresArray
{
String[] get() throws Exception;
}
@davecramer
davecramer / context.xml
Created April 17, 2014 14:43
Spring Context
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/tx
@davecramer
davecramer / SimpleTransactionExample.java
Created April 17, 2014 13:51
SimpleTransactionExample
package ca.credativ.jdbc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.sql.Array;
/**
* Created by davec on 2014-04-16.