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

feat: add query builder package #77

Merged
merged 32 commits into from
Feb 27, 2024
Merged

feat: add query builder package #77

merged 32 commits into from
Feb 27, 2024

Conversation

DominicGBauer
Copy link
Collaborator

@DominicGBauer DominicGBauer commented Feb 22, 2024

Description

Add kysely-driver package to monorepo to allow for typed queries

Work done

Added new package

benitav
benitav previously approved these changes Feb 27, 2024
@DominicGBauer DominicGBauer marked this pull request as ready for review February 27, 2024 08:51
rkistner
rkistner previously approved these changes Feb 27, 2024

```js
await powerSyncDb.execute('INSERT INTO users (id, name) VALUES(3, ?)', ['Lucy']);
await powerSyncDb.execute("UPDATE users SET name = ? WHERE name = 'Lucy'", ['Lucy Smith']);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please parameterize the WHERE name = ? bit as well, to make it more equivalent to the Kysely example.

```js
await powerSyncDb.writeTransaction((transaction) => {
await transaction.execute('INSERT INTO users (id, name) VALUES(4, ?)', ['James']);
await transaction.execute("UPDATE users SET name = ? WHERE name = 'James'", ['James Smith']);
Copy link
Contributor

Choose a reason for hiding this comment

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

Here as well

@DominicGBauer DominicGBauer merged commit 0ff3228 into main Feb 27, 2024
2 checks passed
@DominicGBauer DominicGBauer deleted the feature/add-kysley branch October 24, 2024 07:25
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.

4 participants