Files
Notes/notes-service/vendor/sea-query/changelog/1.0.0-rc.30.md
T
2026-08-01 16:11:49 +03:00

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 as Token::Comment tokens
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

House Keeping