-
Notifications
You must be signed in to change notification settings - Fork 887
chore: automatically generate dbauthz when new queries are added #8007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to get the system.go funcs
Decs: dst.FuncDeclDecorations{ | ||
NodeDecs: dst.NodeDecs{ | ||
Before: dst.EmptyLine, | ||
After: dst.EmptyLine, | ||
}, | ||
}, | ||
Body: &dst.BlockStmt{ | ||
List: []dst.Stmt{ | ||
&dst.ExprStmt{ | ||
X: &dst.CallExpr{ | ||
Fun: &dst.Ident{ | ||
Name: "panic", | ||
}, | ||
Args: []dst.Expr{ | ||
&dst.BasicLit{ | ||
Kind: token.STRING, | ||
Value: "\"Not implemented\"", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 100% fine and correct, however I definitely prefer your other package stub
method as it's easier to read and modify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'm going to merge these funcs together afterwards
No description provided.