How to Do Database Query with SQLX in Rust
· 12 min read
CREATE TYPE gender AS ENUM('female', 'male', 'unknown');
CREATE TABLE user_info(
email varchar(128) NOT NULL PRIMARY KEY,
name varchar(64) NOT NULL,
gender gender DEFAULT 'unknown',
);