From 1a7eb3271a7ed83237b90a5736c32c374ff1f807 Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Thu, 6 Jul 2023 15:26:29 +0100 Subject: [PATCH] Format the examples with `jq` (#21) --- examples/01_create_tables.json | 92 +++++++++++++-------------- examples/02_create_another_table.json | 50 +++++++-------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/examples/01_create_tables.json b/examples/01_create_tables.json index 3aaed7e..1bd018e 100644 --- a/examples/01_create_tables.json +++ b/examples/01_create_tables.json @@ -1,47 +1,47 @@ { - "name": "01_create_tables", - "operations": [ - { - "create_table": { - "name": "customers", - "columns": [ - { - "name": "id", - "type": "integer", - "pk": true - }, - { - "name": "name", - "type": "varchar(255)", - "unique": true - }, - { - "name": "credit_card", - "type": "text", - "nullable": true - } - ] - } - }, - { - "create_table": { - "name": "bills", - "columns": [ - { - "name": "id", - "type": "integer", - "pk": true - }, - { - "name": "date", - "type": "time with time zone" - }, - { - "name": "quantity", - "type": "integer" - } - ] - } - } - ] -} \ No newline at end of file + "name": "01_create_tables", + "operations": [ + { + "create_table": { + "name": "customers", + "columns": [ + { + "name": "id", + "type": "integer", + "pk": true + }, + { + "name": "name", + "type": "varchar(255)", + "unique": true + }, + { + "name": "credit_card", + "type": "text", + "nullable": true + } + ] + } + }, + { + "create_table": { + "name": "bills", + "columns": [ + { + "name": "id", + "type": "integer", + "pk": true + }, + { + "name": "date", + "type": "time with time zone" + }, + { + "name": "quantity", + "type": "integer" + } + ] + } + } + ] +} diff --git a/examples/02_create_another_table.json b/examples/02_create_another_table.json index b53fbf4..52a213b 100644 --- a/examples/02_create_another_table.json +++ b/examples/02_create_another_table.json @@ -1,26 +1,26 @@ { - "name": "02_create_another_table", - "operations": [ - { - "create_table": { - "name": "products", - "columns": [ - { - "name": "id", - "type": "serial", - "pk": true - }, - { - "name": "name", - "type": "varchar(255)", - "unique": true - }, - { - "name": "price", - "type": "decimal(10,2)" - } - ] - } - } - ] -} \ No newline at end of file + "name": "02_create_another_table", + "operations": [ + { + "create_table": { + "name": "products", + "columns": [ + { + "name": "id", + "type": "serial", + "pk": true + }, + { + "name": "name", + "type": "varchar(255)", + "unique": true + }, + { + "name": "price", + "type": "decimal(10,2)" + } + ] + } + } + ] +}