wae-database 0.0.2

WAE Database - 数据库服务抽象层,支持 Turso/PostgreSQL/MySQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use wae_database::{ColumnDef, ColumnType, TableSchema};

#[test]
fn test_column_def() {
    let col = ColumnDef::new("id", ColumnType::Integer);
    assert_eq!(col.name, "id");
}

#[test]
fn test_table_schema() {
    let table = TableSchema::new("users");
    assert_eq!(table.name, "users");
}