rocket_auth2 0.6.2

A high level authentication management library for Rocket applications. It supports both SQLite and Postgres.
Documentation
pub(crate) const CREATE_TABLE: &str = "
CREATE TABLE IF NOT EXISTS users (
    id INT PRIMARY KEY AUTO_INCREMENT,
    email VARCHAR (254) UNIQUE NOT NULL,
	password VARCHAR ( 255 ) NOT NULL,
    roles BLOB NOT NULL
);
";

pub(crate) const INSERT_USER: &str = "
INSERT INTO users (email, password, roles) VALUES (?, ?, ?);
";

pub(crate) const UPDATE_USER: &str = "
UPDATE users SET 
    email = ?,
    password = ?,
    roles = ?
WHERE
    id = ?
";

pub(crate) const SELECT_BY_ID: &str = "
SELECT * FROM users WHERE id = ?;
";

pub(crate) const SELECT_BY_EMAIL: &str = "
SELECT * FROM users WHERE email = ?;
";

pub(crate) const REMOVE_BY_ID: &str = "
DELETE FROM users WHERE id = ?;
";
pub(crate) const REMOVE_BY_EMAIL: &str = "
DELETE FROM users WHERE email = ?;
";
pub(crate) const GET_ALL: &str = "
SELECT id FROM users;
";