Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@libsql/knex-libsql
Advanced tools
A Knex dialect for libSQL/sqld, using the @libsql/sqlite3
package
that emulates sqlite3
.
npm install @libsql/knex-libsql
const Client_Libsql = require('@libsql/knex-libsql');
const Knex = require("knex");
const knex = Knex({
client: Client_Libsql,
connection: {
filename: "libsql://localhost:8080?tls=0",
},
});
The library accepts the same URLs as [@libsql/sqlite3
][libsql-node-sqlite3-url]:
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).To use a JWT for authentication, you can use the authToken
query parameter (for example,
ws://localhost?authToken=<token>
).
You can also pass a file:
URL to use a local file, like file:test.db
or file:/tmp/test.db
.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in @libsql/knex-libsql
by you, shall be licensed as MIT, without any additional terms or conditions.
0.1.0 -- 2023-06-15
FAQs
Knex dialect for libSQL
The npm package @libsql/knex-libsql receives a total of 111 weekly downloads. As such, @libsql/knex-libsql popularity was classified as not popular.
We found that @libsql/knex-libsql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.