forked from
slices.network/slices
Highly ambitious ATProtocol AppView service and sdks
1{
2 "db_name": "PostgreSQL",
3 "query": "\n WITH slice_collections AS (\n SELECT DISTINCT\n json->>'nsid' as collection_nsid\n FROM record\n WHERE collection = 'network.slices.lexicon'\n AND json->>'slice' = $1\n AND json->>'nsid' IS NOT NULL\n AND (json->>'definitions')::jsonb->'main'->>'type' = 'record'\n AND (json->>'excludedFromSync' IS NULL OR json->>'excludedFromSync' != 'true')\n )\n SELECT COUNT(*) as count\n FROM record r\n INNER JOIN slice_collections sc ON r.collection = sc.collection_nsid\n WHERE r.slice_uri = $1\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "count",
9 "type_info": "Int8"
10 }
11 ],
12 "parameters": {
13 "Left": [
14 "Text"
15 ]
16 },
17 "nullable": [
18 null
19 ]
20 },
21 "hash": "1bba58bc784972353c054d767a7337f0d472d8d3d9484ebb18237f4a094c4e58"
22}