A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.
1{
2 "db_name": "PostgreSQL",
3 "query": "\n SELECT \n DATE(created_at)::date as \"date!\",\n COUNT(*)::bigint as \"clicks!\"\n FROM clicks\n WHERE link_id = $1\n GROUP BY DATE(created_at)\n ORDER BY DATE(created_at) ASC -- Changed from DESC to ASC\n LIMIT 30\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "date!",
9 "type_info": "Date"
10 },
11 {
12 "ordinal": 1,
13 "name": "clicks!",
14 "type_info": "Int8"
15 }
16 ],
17 "parameters": {
18 "Left": [
19 "Int4"
20 ]
21 },
22 "nullable": [
23 null,
24 null
25 ]
26 },
27 "hash": "c723ec75f9ca9482e1bc86108c20bf379e5728f378626198a0a9ed024a413273"
28}