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

支持 Parameters mapping 这样的查询写法么? #30

Closed
Liloupar opened this issue Dec 14, 2020 · 4 comments
Closed

支持 Parameters mapping 这样的查询写法么? #30

Liloupar opened this issue Dec 14, 2020 · 4 comments

Comments

@Liloupar
Copy link

比如

select * from user where id = #{id}

或者

select * from user where id = :id

这种命名参数的方式么?

@Liloupar Liloupar changed the title 支持 Parameters mapping 这样子的查询写法么? 支持 Parameters mapping 这样的查询写法么? Dec 14, 2020
@fifsky
Copy link
Member

fifsky commented Dec 14, 2020

sqlx本身是支持的,但是这个库目前只使用了 = ?这一种模式

@Liloupar
Copy link
Author

@fifsky
那也就是说对于 gosql 来说, 目前是只能使用 =? 这一种模式的是么?

@fifsky
Copy link
Member

fifsky commented Dec 15, 2020

@fifsky
那也就是说对于 gosql 来说, 目前是只能使用 =? 这一种模式的是么?

是的

@Liloupar
Copy link
Author

@fifsky
了解了,谢啦

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

No branches or pull requests

2 participants