A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
at master 788 B view raw
1{ 2 "db_name": "PostgreSQL", 3 "query": "\n SELECT \n query_source as \"source!\",\n COUNT(*)::bigint as \"count!\"\n FROM clicks\n WHERE link_id = $1\n AND query_source IS NOT NULL\n AND query_source != ''\n GROUP BY query_source\n ORDER BY COUNT(*) DESC\n LIMIT 10\n ", 4 "describe": { 5 "columns": [ 6 { 7 "ordinal": 0, 8 "name": "source!", 9 "type_info": "Text" 10 }, 11 { 12 "ordinal": 1, 13 "name": "count!", 14 "type_info": "Int8" 15 } 16 ], 17 "parameters": { 18 "Left": [ 19 "Int4" 20 ] 21 }, 22 "nullable": [ 23 true, 24 null 25 ] 26 }, 27 "hash": "8452fbf45386d160bc99ac6c0917a00bf5dad445ef7d484936ce6e0cbe21c965" 28}