var ts = require('../src/tablespoon.js')

var data = [
	{
		city: "New York",
		temp: null,
		country: 'USA'
	},
	{
		city: 'Los Angeles',
		temp: [15,35],
		country: 'USA'
	},
	{
		city: 'Paris',
		temp: [2,33],
		country: 'France'
	},
	{
		city: 'Marseille',
		temp: [5,27],
		country: 'France'
	},
	{
		city: 'London',
		temp: [2,25, 32],
		country: 'UK'
	}
]


var commands = ts.createTableCommands(data, 'cities');

console.log(commands)

/*
{ create: 'CREATE TEMP TABLE cities (uid BIGSERIAL PRIMARY KEY,city TEXT,temp NUMERIC[],country TEXT)',
  insert: 'INSERT INTO cities (city,temp,country) VALUES ($$New York$$,NULL,$$USA$$),($$Los Angeles$$,$${15,35}$$,$$USA$$),($$Paris$$,$${2,33}$$,$$France$$),($$Marseille$$,$${5,27}$$,$$France$$),($$London$$,$${2,25,32}$$,$$UK$$)' }
  */
@@ -414,16 +414,235 @@
 ies');%0A%0A
+// To only print the create commands pass in true as the fifth argument. This could possibly be improved because who wants five arguments?%0Avar create_commands = ts.createTableCommands(data, 'cities', null, null, true);%0A
 console.
@@ -999,8 +999,152 @@
 ' %7D%0A  */
+%0A  %0Aconsole.log(create_commands)%0A/*%0A%7B%0Acreate: 'CREATE TEMP TABLE cities (uid BIGSERIAL PRIMARY KEY,city TEXT,temp NUMERIC%5B%5D,country TEXT)'%0A%7D%0A*/%0A

Update create-table-commands.js