Skip to content

Conversation

psteinroe
Copy link
Collaborator

adds support for named parameters in tokenizer + lexer

for now, we support

  • @name (sqlc)
  • :name, :'name' and :"name" (psql)

closes #455
closes #456

Copy link
Collaborator

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diggi, richtig schöner PR :)

Comment on lines +137 to +139
pgt_tokenizer::NamedParamKind::ColonIdentifier { terminated: false } => {
err = "Missing trailing \" to terminate the named parameter";
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

junge, richtig geil

@psteinroe
Copy link
Collaborator Author

hatte einen sehr sehr schönen Morgen heute. Macht richtig Spaß

@psteinroe psteinroe merged commit 544b6b0 into main Jul 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for @name in the lexer add support for :'name' in the lexer
2 participants