sq/drivers/json/testdata/payment_subset.json
Neil O'Toole a92b9abf34
Initial work on a JSON driver (#70)
* implementation work for json importers

* json driver checkpoint

* working on json.ParseObjectsInArray

* json.ParseObjectsInArray seems to be working

* checkpoint while tidying up ParseObjectsInArray

* more tidy checkpoint

* more tidy checkpoint 2

* tidying up ParseObjectsInArray

* tidy up

* code/docs cleanup

* more cleanup of json driver

* more cleanup of json driver

* flat json import seemingly working

* improvements to json driver

* json writer now prints empty [] for postgres empty tables
2020-10-20 09:05:43 -06:00

92 lines
2.0 KiB
JSON

[
{
"payment_id": 1,
"customer_id": 1,
"staff_id": 1,
"rental_id": 76,
"amount": "2.99",
"payment_date": "2005-05-25T11:30:37Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 2,
"customer_id": 1,
"staff_id": 1,
"rental_id": 573,
"amount": "0.99",
"payment_date": "2005-05-28T10:35:23Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 3,
"customer_id": 1,
"staff_id": 1,
"rental_id": 1185,
"amount": "5.99",
"payment_date": "2005-06-15T00:54:12Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 4,
"customer_id": 1,
"staff_id": 2,
"rental_id": 1422,
"amount": "0.99",
"payment_date": "2005-06-15T18:02:53Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 5,
"customer_id": 1,
"staff_id": 2,
"rental_id": 1476,
"amount": "9.99",
"payment_date": "2005-06-15T21:08:46Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 6,
"customer_id": 1,
"staff_id": 1,
"rental_id": 1725,
"amount": "4.99",
"payment_date": "2005-06-16T15:18:57Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 7,
"customer_id": 1,
"staff_id": 1,
"rental_id": 2308,
"amount": "4.99",
"payment_date": "2005-06-18T08:41:48Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 8,
"customer_id": 1,
"staff_id": 2,
"rental_id": 2363,
"amount": "0.99",
"payment_date": "2005-06-18T13:33:59Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 9,
"customer_id": 1,
"staff_id": 1,
"rental_id": 3284,
"amount": "3.99",
"payment_date": "2005-06-21T06:24:45Z",
"last_update": "2020-06-11T02:50:54Z"
},
{
"payment_id": 10,
"customer_id": 1,
"staff_id": 2,
"rental_id": 4526,
"amount": "5.99",
"payment_date": "2005-07-08T03:17:05Z",
"last_update": "2020-06-11T02:50:54Z"
}
]