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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating .fromRaw API & its tests #4429

Closed
wants to merge 1 commit into from
Closed

Creating .fromRaw API & its tests #4429

wants to merge 1 commit into from

Conversation

LucasHFS
Copy link
Contributor

Attemp to solve #1767 . I'm new to the lib and this is my first PR. Any changes or things to add let me know 馃槂.

@kibertoad
Copy link
Collaborator

@elhigu What do you think?

@@ -203,6 +203,17 @@ class Builder extends EventEmitter {
return this;
}

fromRaw(sql, bindings) {
//Verify if is rawInstance
Copy link
Member

Choose a reason for hiding this comment

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

why this is not implemented just

const raw = sql.isRawInstance ? sql : this.client.raw(sql, bindings);
return this.from(raw)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@LucasHFS Ping?..

@OlivierCavadenti
Copy link
Collaborator

Superseded by #4781

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.

None yet

4 participants