sz-orm-macros 4.7.0

Procedural macros: Model derive, sql_string!, query! and code gen helpers
Documentation
1
2
3
4
5
6
7
8
9
//! 验证 diagnostic_error! 宏生成编译期错误
//!
//! 此文件应编译失败,trybuild 会验证错误信息。

use sz_orm_macros::diagnostic_error;

fn main() {
    diagnostic_error!("类型不匹配:列 `id` 期望 `i64`,但发现 `String`", "请使用 Cast 显式转换");
}