Files
2026-08-01 16:11:49 +03:00

46 lines
1.1 KiB
Markdown

## 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 as `Token::Comment` tokens
```rust
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_ref` https://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