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

Use 'raw' label for sql query interpolation #114

Merged
merged 3 commits into from
Jul 11, 2020
Merged

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Jul 11, 2020

Deprecates the old raw SQL string interpolation and adds a new one with raw label (#114).

let field = "name"
let results = try db.raw("SELECT \(raw: field) FROM users").all().wait()

@tanner0101 tanner0101 added enhancement New feature or request semver-minor Contains new APIs labels Jul 11, 2020
Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

LGTM!

@tanner0101 tanner0101 marked this pull request as ready for review July 11, 2020 18:55
@tanner0101 tanner0101 merged commit ea9928b into master Jul 11, 2020
@tanner0101 tanner0101 deleted the tn-raw-string branch July 11, 2020 19:34
@tanner0101
Copy link
Member Author

These changes are now available in 3.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants