2022-08-30 17:31:35 -04:00
{
"db" : "SQLite" ,
2023-01-24 17:46:47 -05:00
"05a9f963e3f18b8ceb787c33b6dbdac993f999ff32bb5155f2dff8dc18d840bf" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 4
}
} ,
"query" : "insert into recipes (user_id, recipe_id, recipe_text, category) values (?, ?, ?, ?)\n on conflict(user_id, recipe_id) do update set recipe_text=excluded.recipe_text, category=excluded.category"
} ,
2022-08-30 17:31:35 -04:00
"104f07472670436d3eee1733578bbf0c92dc4f965d3d13f9bf4bfbc92958c5b6" : {
"describe" : {
"columns" : [
{
"name" : "password_hashed" ,
"ordinal" : 0 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "select password_hashed from users where id = ?"
} ,
2023-01-16 17:16:23 -05:00
"10de1e9950d7d3ae7f017b9175a1cee4ff7fcbc7403a39ea02930c75b4b9160a" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "amt" ,
"ordinal" : 1 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "with latest_dates as (\n select user_id, max(date(plan_date)) as plan_date from plan_recipes\n where user_id = ?\n group by user_id\n)\n\nselect\n extra_items.name,\n extra_items.amt\nfrom latest_dates\ninner join extra_items on\n latest_dates.user_id = extra_items.user_id\n and latest_dates.plan_date = extra_items.plan_date"
} ,
2023-01-18 07:34:05 -05:00
"10e1c111a16d647a106a3147f4e61e34b0176860ca99cb62cb43dc72550ad990" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from modified_amts where user_id = ? and plan_date = ?"
} ,
2022-12-10 09:26:02 -05:00
"160a9dfccf2e91a37d81f75eba21ec73105a7453c4f1fe76a430d04e525bc6cd" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 4
}
} ,
"query" : "insert into filtered_ingredients(user_id, name, form, measure_type, plan_date)\n values (?, ?, ?, ?, date()) on conflict(user_id, name, form, measure_type, plan_date) DO NOTHING"
} ,
2022-11-11 16:45:14 -05:00
"19832e3582c05ed49c676fde33cde64274379a83a8dd130f6eec96c1d7250909" : {
"describe" : {
"columns" : [
{
"name" : "plan_date: NaiveDate" ,
"ordinal" : 0 ,
2022-11-11 17:35:10 -05:00
"type_info" : "Date"
2022-11-11 16:45:14 -05:00
} ,
{
"name" : "recipe_id" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "count" ,
"ordinal" : 2 ,
"type_info" : "Int64"
}
] ,
"nullable" : [
false ,
false ,
false
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select plan_date as \"plan_date: NaiveDate\", recipe_id, count\nfrom plan_recipes\nwhere\n user_id = ?\n and date(plan_date) > ?\norder by user_id, plan_date"
} ,
2023-01-06 11:04:03 -05:00
"1b4a7250e451991ee7e642c6389656814e0dd00c94e59383c02af6313bc76213" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "insert into staples (user_id, content) values (?, ?)\n on conflict(user_id) do update set content = excluded.content"
} ,
2023-01-17 13:44:13 -05:00
"1b6fd91460bef61cf02f210404a4ca57b520c969d1f9613e7101ee6aa7a9962a" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 6
}
} ,
"query" : "insert into modified_amts(user_id, name, form, measure_type, amt, plan_date)\n values (?, ?, ?, ?, ?, ?) on conflict (user_id, name, form, measure_type, plan_date) do update set amt=excluded.amt"
} ,
2023-01-24 17:46:47 -05:00
"1cc4412dfc3d4acdf257e839b50d6c9abbb6e74e7af606fd12da20f0aedde3de" : {
"describe" : {
"columns" : [
{
"name" : "recipe_id" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "recipe_text" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "category" ,
"ordinal" : 2 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
true ,
true
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select recipe_id, recipe_text, category from recipes where user_id = ? and recipe_id = ?"
} ,
2023-01-18 07:34:05 -05:00
"23beb05e40cf011170182d4e98cdf1faa3d8df6e5956e471245e666f32e56962" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from filtered_ingredients where user_id = ? and plan_date = ?"
} ,
2023-01-05 17:56:15 -05:00
"2582522f8ca9f12eccc70a3b339d9030aee0f52e62d6674cfd3862de2a68a177" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 3
}
} ,
"query" : "insert into category_mappings\n (user_id, ingredient_name, category_name)\n values (?, ?, ?)\n on conflict (user_id, ingredient_name)\n do update set category_name=excluded.category_name\n"
} ,
2023-03-21 15:48:36 -04:00
"27aa0a21f534cdf580841fa111136fc26cf1a0ca4ddb308c12f3f8f5a62d6178" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from plan_table where user_id = ? and plan_date = ?"
} ,
"288535e7b9e1f02ad1b677e3dddc85f38c0766ce16d26fc1bdd2bf90ab9a7f7c" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "insert into plan_table (user_id, plan_date) values (?, ?)\n on conflict (user_id, plan_date) do nothing;"
} ,
2023-01-17 13:07:14 -05:00
"2e076acd2405d234daaa866e5a2ac1e10989fc8d2820f90aa722464a7b17db6b" : {
"describe" : {
"columns" : [
{
"name" : "plan_date: NaiveDate" ,
"ordinal" : 0 ,
"type_info" : "Date"
} ,
{
"name" : "recipe_id" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "count" ,
"ordinal" : 2 ,
"type_info" : "Int64"
}
] ,
"nullable" : [
false ,
false ,
false
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select plan_date as \"plan_date: NaiveDate\", recipe_id, count\n from plan_recipes\nwhere\n user_id = ?\n and plan_date = ?"
} ,
2023-01-16 17:16:23 -05:00
"37f382be1b53efd2f79a0d59ae6a8717f88a86908a7a4128d5ed7339147ca59d" : {
2023-01-12 18:14:44 -05:00
"describe" : {
"columns" : [
{
2023-01-16 17:16:23 -05:00
"name" : "ingredient_name" ,
2023-01-12 18:14:44 -05:00
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
2023-01-16 17:16:23 -05:00
"name" : "category_name" ,
2023-01-12 18:14:44 -05:00
"ordinal" : 1 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
false
] ,
"parameters" : {
"Right" : 1
}
} ,
2023-01-16 17:16:23 -05:00
"query" : "select ingredient_name, category_name from category_mappings where user_id = ?"
2023-01-12 18:14:44 -05:00
} ,
2023-01-16 17:16:23 -05:00
"3caefb86073c47b5dd5d05f639ddef2f7ed2d1fd80f224457d1ec34243cc56c7" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 3
}
} ,
"query" : "insert into extra_items (user_id, name, plan_date, amt)\nvalues (?, ?, date(), ?)\non conflict (user_id, name, plan_date) do update set amt=excluded.amt"
} ,
"3e43f06f5c2e959f66587c8d74696d6db27d89fd2f7d7e1ed6fa5016b4bd1a91" : {
2023-01-05 13:39:16 -05:00
"describe" : {
"columns" : [
{
2023-01-16 17:16:23 -05:00
"name" : "name" ,
2023-01-05 13:39:16 -05:00
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
2023-01-16 17:16:23 -05:00
"name" : "form" ,
2023-01-05 13:39:16 -05:00
"ordinal" : 1 ,
"type_info" : "Text"
2023-01-16 17:16:23 -05:00
} ,
{
"name" : "measure_type" ,
"ordinal" : 2 ,
"type_info" : "Text"
} ,
{
"name" : "amt" ,
"ordinal" : 3 ,
"type_info" : "Text"
2023-01-05 13:39:16 -05:00
}
] ,
"nullable" : [
2023-01-16 17:16:23 -05:00
false ,
false ,
2023-01-05 13:39:16 -05:00
false ,
false
] ,
"parameters" : {
"Right" : 1
}
} ,
2023-01-16 17:16:23 -05:00
"query" : "with latest_dates as (\n select user_id, max(date(plan_date)) as plan_date from plan_recipes\n where user_id = ?\n group by user_id\n)\n\nselect\n modified_amts.name,\n modified_amts.form,\n modified_amts.measure_type,\n modified_amts.amt\nfrom latest_dates\ninner join modified_amts on\n latest_dates.user_id = modified_amts.user_id\n and latest_dates.plan_date = modified_amts.plan_date"
2022-12-10 09:26:02 -05:00
} ,
2023-01-24 17:46:47 -05:00
"40c589d8cb88d7ed723c8651833fe8541756ef0c57bf6296a4dfbda7d504dca8" : {
2022-09-03 16:20:16 -04:00
"describe" : {
2023-01-24 17:46:47 -05:00
"columns" : [
{
"name" : "recipe_id" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "recipe_text" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "category" ,
"ordinal" : 2 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
true ,
true
] ,
2022-09-03 16:20:16 -04:00
"parameters" : {
2023-01-24 17:46:47 -05:00
"Right" : 1
2022-09-03 16:20:16 -04:00
}
} ,
2023-01-24 17:46:47 -05:00
"query" : "select recipe_id, recipe_text, category from recipes where user_id = ?"
2022-09-03 16:20:16 -04:00
} ,
2023-01-17 13:44:13 -05:00
"4237ff804f254c122a36a14135b90434c6576f48d3a83245503d702552ea9f30" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "amt" ,
"ordinal" : 1 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
false
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select\n name,\n amt\nfrom extra_items\nwhere\n user_id = ?\n and plan_date = ?"
} ,
"5883c4a57def93cca45f8f9d81c8bba849547758217cd250e7ab28cc166ab42b" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 5
}
} ,
"query" : "insert into filtered_ingredients(user_id, name, form, measure_type, plan_date)\n values (?, ?, ?, ?, ?) on conflict(user_id, name, form, measure_type, plan_date) DO NOTHING"
} ,
2022-08-30 17:31:35 -04:00
"5d743897fb0d8fd54c3708f1b1c6e416346201faa9e28823c1ba5a421472b1fa" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "insert into users (id, password_hashed) values (?, ?)"
} ,
2023-01-06 11:04:03 -05:00
"64af3f713eb4c61ac02cab2dfea83d0ed197e602e99079d4d32cb38d677edf2e" : {
"describe" : {
"columns" : [
{
"name" : "content" ,
"ordinal" : 0 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "select content from staples where user_id = ?"
} ,
2023-01-17 13:44:13 -05:00
"699ff0f0d4d4c6e26a21c1922a5b5249d89ed1677680a2276899a7f8b26344ee" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "form" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "measure_type" ,
"ordinal" : 2 ,
"type_info" : "Text"
} ,
{
"name" : "amt" ,
"ordinal" : 3 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
false ,
false ,
false
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select\n modified_amts.name,\n modified_amts.form,\n modified_amts.measure_type,\n modified_amts.amt\nfrom modified_amts\nwhere\n user_id = ?\n and plan_date = ?"
} ,
2023-01-06 16:52:26 -05:00
"6c43908d90f229b32ed8b1b076be9b452a995e1b42ba2554e947c515b031831a" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from recipes where user_id = ? and recipe_id = ?"
} ,
2022-12-10 09:26:02 -05:00
"6e28698330e42fd6c87ba1e6f1deb664c0d3995caa2b937ceac8c908e98aded6" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 5
}
} ,
"query" : "insert into modified_amts(user_id, name, form, measure_type, amt, plan_date)\n values (?, ?, ?, ?, ?, date()) on conflict (user_id, name, form, measure_type, plan_date) do update set amt=excluded.amt"
} ,
2023-01-18 07:34:05 -05:00
"6f11d90875a6230766a5f9bd1d67665dc4d00c13d7e81b0d18d60baa67987da9" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from extra_items where user_id = ? and plan_date = ?"
} ,
2022-08-30 17:31:35 -04:00
"7578157607967a6a4c60f12408c5d9900d15b429a49681a4cae4e02d31c524ec" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "delete from sessions where id = ?"
} ,
2023-01-17 13:44:13 -05:00
"7695a0602395006f9b76ecd4d0cb5ecd5dee419b71b3b0b9ea4f47a83f3df41a" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
"name" : "form" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "measure_type" ,
"ordinal" : 2 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false ,
false ,
false
] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "select\n filtered_ingredients.name,\n filtered_ingredients.form,\n filtered_ingredients.measure_type\nfrom filtered_ingredients\nwhere\n user_id = ?\n and plan_date = ?"
} ,
2022-11-25 10:42:56 -05:00
"83824ea638cb64c524f5c8984ef6ef28dfe781f0abf168abc4ae9a51e6e0ae88" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 4
}
} ,
"query" : "insert into plan_recipes (user_id, plan_date, recipe_id, count) values (?, ?, ?, ?)\n on conflict (user_id, plan_date, recipe_id) do update set count=excluded.count;"
} ,
2022-09-08 20:17:46 -04:00
"8490e1bb40879caed62ac1c38cb9af48246f3451b6f7f1e1f33850f1dbe25f58" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "insert into categories (user_id, category_text) values (?, ?)\n on conflict(user_id) do update set category_text=excluded.category_text"
} ,
2022-08-30 17:31:35 -04:00
"928a479ca0f765ec7715bf8784c5490e214486edbf5b78fd501823feb328375b" : {
"describe" : {
"columns" : [
{
"name" : "session_value" ,
"ordinal" : 0 ,
"type_info" : "Blob"
}
] ,
"nullable" : [
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "select session_value from sessions where id = ?"
} ,
2023-01-18 07:40:10 -05:00
"93af0c367a0913d49c92aa69022fa30fc0564bd4dbab7f3ae78673a01439cd6e" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "delete from plan_recipes where user_id = ? and plan_date = ?"
} ,
2022-08-30 17:31:35 -04:00
"9ad4acd9b9d32c9f9f441276aa71a17674fe4d65698848044778bd4aef77d42d" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 2
}
} ,
"query" : "insert into sessions (id, session_value) values (?, ?)"
} ,
2022-11-11 16:45:14 -05:00
"ad3408cd773dd8f9308255ec2800171638a1aeda9817c57fb8360f97115f8e97" : {
"describe" : {
"columns" : [
{
"name" : "plan_date: NaiveDate" ,
"ordinal" : 0 ,
2022-11-11 17:35:10 -05:00
"type_info" : "Date"
2022-11-11 16:45:14 -05:00
} ,
{
"name" : "recipe_id" ,
"ordinal" : 1 ,
"type_info" : "Text"
} ,
{
"name" : "count" ,
"ordinal" : 2 ,
"type_info" : "Int64"
}
] ,
"nullable" : [
false ,
false ,
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "with max_date as (\n select user_id, max(date(plan_date)) as plan_date from plan_recipes group by user_id\n)\n\nselect plan_recipes.plan_date as \"plan_date: NaiveDate\", plan_recipes.recipe_id, plan_recipes.count\n from plan_recipes\n inner join max_date on plan_recipes.user_id = max_date.user_id\nwhere\n plan_recipes.user_id = ?\n and plan_recipes.plan_date = max_date.plan_date"
} ,
2023-01-17 13:44:13 -05:00
"ba07658eb11f9d6cfdb5dbee4496b2573f1e51f4b4d9ae760eca3b977649b5c7" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 4
}
} ,
"query" : "insert into extra_items (user_id, name, amt, plan_date)\nvalues (?, ?, ?, ?)\non conflict (user_id, name, plan_date) do update set amt=excluded.amt"
} ,
2022-09-01 19:45:37 -04:00
"c988364f9f83f4fa8bd0e594bab432ee7c9ec47ca40f4d16e5e2a8763653f377" : {
"describe" : {
"columns" : [
{
"name" : "category_text" ,
"ordinal" : 0 ,
"type_info" : "Text"
}
] ,
"nullable" : [
true
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "select category_text from categories where user_id = ?"
} ,
2022-08-30 17:31:35 -04:00
"d84685a82585c5e4ae72c86ba1fe6e4a7241c4c3c9e948213e5849d956132bad" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Right" : 0
}
} ,
"query" : "delete from sessions"
2022-11-11 17:35:10 -05:00
} ,
2023-01-16 17:16:23 -05:00
"e38183e2e16afa308672044e5d314296d7cd84c1ffedcbfe790743547dc62de8" : {
2022-11-11 17:35:10 -05:00
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Text"
} ,
{
2023-01-12 18:14:44 -05:00
"name" : "form" ,
2022-12-10 09:26:02 -05:00
"ordinal" : 1 ,
2022-11-11 17:35:10 -05:00
"type_info" : "Text"
2023-01-12 18:14:44 -05:00
} ,
{
"name" : "measure_type" ,
"ordinal" : 2 ,
"type_info" : "Text"
2022-11-11 17:35:10 -05:00
}
] ,
"nullable" : [
2023-01-12 18:14:44 -05:00
false ,
2022-11-11 17:35:10 -05:00
false ,
false
] ,
"parameters" : {
"Right" : 1
}
} ,
2023-01-16 17:16:23 -05:00
"query" : "with latest_dates as (\n select user_id, max(date(plan_date)) as plan_date from plan_recipes\n where user_id = ?\n group by user_id\n)\n\nselect\n filtered_ingredients.name,\n filtered_ingredients.form,\n filtered_ingredients.measure_type\nfrom latest_dates\ninner join filtered_ingredients on\n latest_dates.user_id = filtered_ingredients.user_id\n and latest_dates.plan_date = filtered_ingredients.plan_date"
2023-03-20 19:43:11 -04:00
} ,
"fd818a6b1c800c2014b5cfe8a923ac9228832b11d7575585cf7930fbf91306d1" : {
"describe" : {
"columns" : [
{
"name" : "plan_date: NaiveDate" ,
"ordinal" : 0 ,
"type_info" : "Text"
}
] ,
"nullable" : [
false
] ,
"parameters" : {
"Right" : 1
}
} ,
"query" : "select distinct plan_date as \"plan_date: NaiveDate\" from plan_table\nwhere user_id = ?"
2022-08-30 17:31:35 -04:00
}
}