runlight 0.3.1

Privacy friendly web analytics that lives inside your Rust app: mount a route, add a script tag, read your stats at /runlight
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Runlight's tables: the database driver a store needs ([`Db`]), the rows
//! it keeps, and [`SqlStore`], the same tables and statements as the
//! TypeScript SDK's store on SQLite, Postgres, and MySQL or MariaDB. The
//! drivers over sqlx are the runlight-sqlx crate.

mod db;
mod prefixed;
mod rows;
pub(crate) mod sql;
mod sql_store;

pub use db::*;
pub use prefixed::{LOCK_WAIT, PREFIX, Prefixed, TABLES, TablesBusyError, check_prefix, lock_wait, lock_wait_in_tests};
pub use rows::*;
pub use sql::{BOUNCE_MS, EVENT_TAIL_MS, FUNNEL_VISITS, JOURNEY_VISITS, MYSQL_COLLATION, js_order};
pub use sql_store::SqlStore;