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

Implement SQLx interface #124

Closed
wants to merge 0 commits into from
Closed

Conversation

halvardssm
Copy link

@halvardssm halvardssm commented Apr 10, 2024

Relates to #123

This PR introduces some breaking changes to the Statement class. The Database class is not altered in a breaking way, and a new SQLx file has been introduced.

Changes:

  • Breaking change in statement class
  • Moved all deps to deno.json as import map
  • Added bench for sqlx
  • Added iterator for array result
  • Moved some code around
  • Added tests

test/test.ts Outdated
assertEquals(result7, 12);
// Releases lock from table.
stmt.finalize();
// TODO figure out why the following error results from this test:
Copy link
Author

Choose a reason for hiding this comment

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

@DjDeveloperr Due to changes to FFI, the aggregate test is breaking. After some research, it is due to bigint and number, but I am not completely sure where the error originates. Would you have an idea?

Copy link
Member

Choose a reason for hiding this comment

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

There are a lot of changes in FFI which would cause type errors mostly - I will make a separate PR for now that takes care of all that

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.

2 participants