Skip to content

Conversation

@DominicGBauer
Copy link
Contributor

@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
@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.

5 participants