tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL

Home Page:https://docs.turso.tech/sdk/ts/quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In memory databases seems not to be supported.

pdenapo opened this issue · comments

I'm trying to create a client for a database in memory with the following code:

import { createClient } from '@libsql/client';

const client = createClient({
	url: ':memory:'
});

I get the following code

LibsqlError: URL_INVALID: The URL is not in a valid format

This feature would be useful for instance, when writing tests.

Many thanks, this is very useful for me! I'm submitting a pull-request for adding this to the documentation in the README

#136