Skip to content

Commit

Permalink
feat: extend support for table commit opts
Browse files Browse the repository at this point in the history
  • Loading branch information
cvng committed Jan 2, 2024
1 parent 1809ea0 commit 4763488
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/codegen/src/get_node_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ fn custom_handlers(node: &Node) -> TokenStream {
tokens.push(TokenProperty::from(Token::All));
}
},
"TransactionStmt" => quote! {
match n.kind() {
protobuf::TransactionStmtKind::TransStmtCommit => tokens.push(TokenProperty::from(Token::Commit)),
_ => panic!("Unknown TransactionStmt {:#?}", n.kind())
}
},
"PartitionBoundSpec" => quote! {
tokens.push(TokenProperty::from(Token::From));
tokens.push(TokenProperty::from(Token::To));
Expand Down

0 comments on commit 4763488

Please sign in to comment.