Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libsql/client

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/client

libSQL driver for TypeScript and JavaScript

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

libSQL driver for TypeScript and JavaScript

Getting Started

To get started, you need sqld running somewhere. Then:

import { connect } from "@libsql/client"

const config = {
  url: "http://localhost:8080"
};
const db = connect(config);
const rs = await db.execute("SELECT * FROM users");
console.log(rs);

You can also just run against local SQLite with:

import { connect } from "@libsql/client"

const config = {
  url: "file:example.db" // Use "file::memory:" for in-memory mode.
};
const db = connect(config);
const rs = await db.execute("SELECT * FROM users");
console.log(rs);

Features

  • SQLite JavaScript API
  • SQLite-backed local-only backend
  • SQL over HTTP with fetch()

Roadmap

  • Read replica mode
  • Cloudflare D1 API compatibility?

Keywords

FAQs

Package last updated on 14 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc