A very performant and light (2mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres/SQLite.

check for both postgres and postgresql

Changed files
+1 -1
src
+1 -1
src/lib.rs
···
let database_url = std::env::var("DATABASE_URL").ok();
match database_url {
-
Some(url) if url.starts_with("postgres://") => {
+
Some(url) if url.starts_with("postgres://") || url.starts_with("postgresql://") => {
info!("Using PostgreSQL database");
let pool = PgPoolOptions::new()
.max_connections(5)