Skip to content
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

rbatis::crud!(Book {},"t_book"); No effect #524

Open
lontten opened this issue May 9, 2024 · 1 comment
Open

rbatis::crud!(Book {},"t_book"); No effect #524

lontten opened this issue May 9, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@lontten
Copy link

lontten commented May 9, 2024

win11
rustc 1.78.0
pg
serde = { version = "1", features = ["derive"] }

rbs = { version = "4.5" }
rbatis = { version = "4.5" }
rbdc-pg = { version = "4.5" }

rbatis::crud!(Book {},"t_book"); // this way custom table name
impl_select!(Book{select_one() -> Option => "`limit 1`"});

sql
select * from book limit 1

@zhuxiujia
Copy link
Member

zhuxiujia commented May 9, 2024

impl_select!(Book{select_one() -> Option => "`limit 1`"}, "t_book");

@zhuxiujia zhuxiujia added the help wanted Extra attention is needed label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants