#sql #fields #field #db #df #sql-database #carryxd

df-fields

This is a shortcut tool related to database fields

1 unstable release

0.1.16 Mar 18, 2023
0.1.15 Mar 18, 2023
0.1.14 Feb 28, 2023
0.1.7 Jan 24, 2023

#2228 in Database interfaces


Used in 2 crates

MIT license

56KB
1.5K SLoC

df-fields 字段规范工具

功能

  • 统一SQL字段格式
  • 规范书写格式
  • 集中处理数据库各种转换
  • 快速编辑数据格式

实例

fn main() {
    let data = df_fields::str::Str::new(true, "str", "string", 6, "carry").field();
    assert_eq!(r#"{
    "require":true,
    "field":"str",
    "mode":"string",
    "title":"string",
    "length":6,
    "def":"carry",
    "dec":""
    }"#, data.to_string());
}

Dependencies

~1.5MB
~21K SLoC