1.1 KiB
1.1 KiB
Release Notes: sea-query 1.0.0-rc.30
(since 1.0.0-rc.29)
New Features
- Tokenizer supports comment parsing —
--line comments and/* */block comments are now recognized asToken::Commenttokens
let string = r#"SELECT -- hello
1"#;
let tokens: Vec<Token> = Tokenizer::new(string).iter().collect();
assert_eq!(
tokens,
vec![
Token::Unquoted("SELECT"),
Token::Space(" "),
Token::Comment("-- hello"),
Token::Space("\n "),
Token::Unquoted("1"),
]
);
let string = r#"SELECT /* hello */ 1"#;
let tokens: Vec<Token> = Tokenizer::new(string).iter().collect();
assert_eq!(
tokens,
vec![
Token::Unquoted("SELECT"),
Token::Space(" "),
Token::Comment("/* hello */"),
Token::Space(" "),
Token::Unquoted("1"),
]
);
Bug Fixes
- Escape array suffix in
prepare_type_refhttps://github.com/SeaQL/sea-query/pull/1024
House Keeping
- Reduce dependency on specific versions of value type crates
- Use named columns in sqlx examples https://github.com/SeaQL/sea-query/pull/1037