hrana-client-ts
hrana-client-ts copied to clipboard
Hrana client for TypeScript and JavaScript
This PR was instigated due to my [Discord post](https://discord.com/channels/933071162680958986/1234527248565014548/1234527248565014548) and my involvement of [this Kysely GitHub issue](https://github.com/kysely-org/kysely/issues/123#issuecomment-2085380537). In short: after switching from PlanetScale to Turso I was expecting boolean DB...
In [@libsql/client](https://github.com/tursodatabase/libsql-client-ts/blob/b58d509e0bf0a48b28e7bd02ae2708fcb62a1f22/packages/libsql-client/src/sqlite3.ts#L275), column properties on rows are defined with `writable: true`. ```ts Object.defineProperty(row, column, { value, enumerable: true, configurable: true, writable: true }); ``` This was fixed in https://github.com/tursodatabase/libsql-client-ts/pull/166, but...
In order to fix [Issue #189](https://github.com/tursodatabase/libsql-client-ts/issues/189) in `libsql-client-ts`, this additional error message should be removed. **Before:** ``` LibsqlError: SERVER_ERROR: Server returned HTTP status 404. It seems that the libsql server...
https://github.com/libsql/hrana-client-ts/blob/main/src/http/stream.ts#L363 I am using the turso.tech database (sqlite3) with NestJS TypeORM. I've created DI for Repository to make it easier to use, specifically for master and slave (readonly) connections. I...
Context in this [Discord chat](https://discord.com/channels/933071162680958986/1173104190659248140/1173104190659248140). Sometimes, we get random connection errors that are fixed when we have long-lived connections. However, those [get fixed when we retry them](https://discord.com/channels/933071162680958986/1173104190659248140/1191813368554729562). We need to...
This changes flush() to retry the fetch() call on transient errors such as EPIPE, ECONNREFUSED, and ECONNRESET.
`@libsql/isomorphic-fetch` version `0.2.2` includes changes from https://github.com/libsql/isomorphic-ts/pull/11 so we're upgrading the version we use in this package.
Jest has weird issues with typing: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/60924 `vitest` looks better from that perspective