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

Join types #1840

Merged
merged 3 commits into from
Nov 10, 2024
Merged

Join types #1840

merged 3 commits into from
Nov 10, 2024

Conversation

Swahvay
Copy link
Contributor

@Swahvay Swahvay commented Nov 8, 2024

Pretty simple, just lets you specify a type of join if you want to. Fixes #1839.

Pretty simple, just lets you specify a type of join if you want to.
import * as clause from "./clause";
import { Data, ID, LoadRowsOptions } from "./base";
import { v1 } from "uuid";
import { MockLogs } from "../testutils/mock_log";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I have my editor set up to alphabetize imports.

Comment on lines 56 to 64
join.type === "left"
? "LEFT JOIN"
: join.type === "right"
? "RIGHT JOIN"
: join.type === "outer"
? "FULL OUTER JOIN"
: join.type === "inner"
? "INNER JOIN"
: "JOIN";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not readable lol. can you use a switch statement here?

@lolopinto lolopinto merged commit 736baaa into lolopinto:main Nov 10, 2024
1 of 4 checks passed
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

Successfully merging this pull request may close these issues.

Allow other join types in CustomClauseQuery
2 participants