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

fix: Do not make rows read-only #166

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

netroy
Copy link
Contributor

@netroy netroy commented Jan 29, 2024

Since Object.defineProperty defaults to configurable: false and writable: false, all row objects created in libsql-client currently have read-only columns.
Irrespective of our opinions on immutability, this behavior is unfortunately not backward-compatible with any of the other sqlite JS/TS clients.

I started implementing a libSQL driver in TypeORM, but the tests are currently failing because of fields on row objects being read-only.

@penberg penberg merged commit b7a5358 into tursodatabase:main Jan 29, 2024
3 checks passed
@netroy
Copy link
Contributor Author

netroy commented Jan 29, 2024

Thanks @penberg 🙏🏽

@netroy netroy deleted the make-rows-writable branch January 29, 2024 12:40
@penberg
Copy link
Contributor

penberg commented Jan 29, 2024

Thanks for fixing this @netroy!

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