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

Model() w/o params in doc? #964

Open
comerc opened this issue Mar 22, 2024 · 0 comments
Open

Model() w/o params in doc? #964

comerc opened this issue Mar 22, 2024 · 0 comments

Comments

@comerc
Copy link
Contributor

comerc commented Mar 22, 2024

https://bun.uptrace.dev/guide/query-select.html#subqueries

Screen Shot 2024-03-22 at 11 40 47

It is does not work. May be:

	subq := db.NewSelect().Model((*Book)(nil)).Where("author_id = ?", 1)
	
	q := db.NewSelect().TableExpr("(?) AS book", subq)

P.S. How to get bun-docs? 404

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

1 participant