-4
src/handlers.rs
-4
src/handlers.rs
···
707
707
WHERE link_id = $1
708
708
GROUP BY DATE(created_at)
709
709
ORDER BY DATE(created_at) ASC
710
-
LIMIT 30
711
710
"#,
712
711
)
713
712
.bind(link_id)
···
724
723
WHERE link_id = ?
725
724
GROUP BY DATE(created_at)
726
725
ORDER BY DATE(created_at) ASC
727
-
LIMIT 30
728
726
"#,
729
727
)
730
728
.bind(link_id)
···
789
787
AND query_source != ''
790
788
GROUP BY DATE(created_at), query_source
791
789
ORDER BY DATE(created_at) ASC, COUNT(*) DESC
792
-
LIMIT 300
793
790
"#,
794
791
)
795
792
.bind(link_id)
···
809
806
AND query_source != ''
810
807
GROUP BY DATE(created_at), query_source
811
808
ORDER BY DATE(created_at) ASC, COUNT(*) DESC
812
-
LIMIT 300
813
809
"#,
814
810
)
815
811
.bind(link_id)