
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
js-data-sql
Advanced tools
A Postgres/MySQL/MariaDB/SQLite3 adapter for the JSData Node.js ORM.
npm install --save js-data js-data-sql
And then you also need to install one of the following:
pg
sqlite3
mysql
mysql2
mariasql
strong-oracle
oracle
mssql
import { SqlAdapter } from 'js-data-sql';
// Create an instance of SqlAdapter
const adapter = new SqlAdapter({
knexOpts: {
client: 'mysql'
}
});
// Other JSData setup hidden
// Register the adapter instance
store.registerAdapter('sql', adapter, { default: true });
Start with the JSData + SQL tutorial or checkout the API Reference Documentation.
Please post a question on Stack Overflow. This is the preferred method.
You can also chat with folks on the Slack Channel. If you end up getting your question answered, please still consider consider posting your question to Stack Overflow (then possibly answering it yourself). Thanks!
Awesome! You can get started over at the Contributing guide.
Thank you!
Copyright (c) 2014-2017 js-data-sql project authors
1.0.1 - 18 August 2017
mysql
from dependenciesFAQs
Postgres/MySQL/MariaDB/SQLite3 adapter for js-data.
The npm package js-data-sql receives a total of 1 weekly downloads. As such, js-data-sql popularity was classified as not popular.
We found that js-data-sql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.