Doug Stevenson
Doug Stevenson
With better-sqlite3, the readonly option behaves as such: - Constructor fails when combined with an in-memory database > TypeError: In-memory/temporary databases cannot be readonly - Queries that mutate fail >...
Running `new Database` with a configuration that wants to use a remote sqld will cause the program to block on disk or network I/O for some amount of time, potentially...
The other libsql drivers show both the [SQLite error code](https://www.sqlite.org/rescode.html) along with the message. This helps developers better understand and diagnose problems. For example, the TypeScript and Python SDKs yield...
It looks like `BeginTx` takes a `TxOptions` struct which allows the caller to specify if this is a `ReadOnly` transaction. This should be used to implement the correct type of...
```go var dbUrl = "file://tmp/test.db" db, err := sql.Open("libsql", dbUrl) if err != nil { fmt.Fprintf(os.Stderr, "failed to open db %s: %s", dbUrl, err) os.Exit(1) } rows, err := db.Query("select...
`createClient` should not block the caller at all, nor throw errors unrelated to the validity of the parameters it receives. An example of a thrown error can be seen in...
Client version 0.3.5-pre.10 The error below contains the relevant information, but it's difficult to understand. Also, the error code isn't populated with something meaningful (empty string). Ideally in this case,...
This might be a sqld/hrana issue, but I'm reporting this from the observations from the TS client as seen in https://github.com/libsql/libsql-client-ts/pull/87 The values in`columnTypes` have inconsistent (and, in my opinion,...
Working against current main. ```ts const rs = await client.execute("select 1, 'asdf'") ``` ``` TypeError: Cannot redefine property: 1 at Function.defineProperty () at rowFromProto (/Users/doug/work/chiselstrike/codingdoug/libsql-client-ts/node_modules/@libsql/hrana-client/lib-cjs/result.js:45:16) at /Users/doug/work/chiselstrike/codingdoug/libsql-client-ts/node_modules/@libsql/hrana-client/lib-cjs/result.js:17:41 at Array.map ()...
```python class LibsqlError(RuntimeError): code: str def __init__(self, message: str, code: str): super(RuntimeError, self).__init__(f"{code}: {message}") self.code = code ``` We have a `code`, which is normally the SQLite error code, such...