Skip to content

Instantly share code, notes, and snippets.

View MitMaro's full-sized avatar
🦀
Rewritten in Rust

Tim Oram MitMaro

🦀
Rewritten in Rust
View GitHub Profile
-- PRAGMAs
PRAGMA foreign_keys = ON;
-- User
CREATE TABLE account(
id TEXT PRIMARY KEY,
user_id TEXT UNIQUE NOT NULL,
password TEXT NOT NULL,
password_reset_code TEXT NULL,
email TEXT UNIQUE NOT NULL,
invert (unsigned x, int p, int n){
p = specified starting position, n = how many to change, x = number being altered;
while (p <= n){
change the 0 or 1 at p to the opposite;
n++;
}
}