
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@maxzpr/kysely-libsql-client
Advanced tools
Forked from Libsql/kysely-libsql
A Kysely using the @libsql/client from Turso official sdk.
npm install @maxzpr/kysely-libsql-client
Pass a LibsqlDialect
instance as the dialect
when creating the Kysely
object:
import { Kysely } from "kysely";
import { LibsqlDialect } from "@maxzpr/kysely-libsql-client";
interface Database {
...
}
const db = new Kysely<Database>({
dialect: new LibsqlDialect({
url: "libsql://localhost:8080?tls=0",
authToken: "<token>", // optional
}),
});
// or
const db = new Kysely<Database>({
dialect: new LibsqlDialect({
url: "libsql://localhost:8080?authToken=<token>"
}),
});
The library accepts the same URL schemas as @libsql/client
except file:
:
http://
and https://
connect to a libsql server over HTTP,ws://
and wss://
connect to the server over WebSockets,libsql://
connects to the server using the default protocol (which is now HTTP). libsql://
URLs use TLS by default, but you can use ?tls=0
to disable TLS (e.g. when you run your own instance of the server locally).Connecting to a local SQLite file using file:
URL is not supported; we suggest that you use the native Kysely dialect for SQLite.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in @maxzpr/kysely-libsql-client
by you, shall be licensed as MIT, without any additional terms or conditions.
FAQs
Kysely dialect for libSQL
The npm package @maxzpr/kysely-libsql-client receives a total of 0 weekly downloads. As such, @maxzpr/kysely-libsql-client popularity was classified as not popular.
We found that @maxzpr/kysely-libsql-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.