Socket
Socket
Sign inDemoInstall

qql

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qql

QQL is a query builder.


Version published
Weekly downloads
31
increased by10.71%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

QQL

QQL is a query builder.

All queries are plain javascript object. One of the benefits of this is that they can easily be serialized and sent in a call to a server. The goal is that it should be possible, in the context of a web app, to access the database directly from the client as well as from the server, with the same API. There is also a permission based view system, to allow the correct access depending on the context, even if the API is the same.

Example


let qql=createQql({
	sqlite: new sqlite3.Database(':memory:'),
	tables: {
		// ... schema def here ...
	}
});
await qql({insertInto: "users", set: {name: "alice"}});
let result=await qql({manyFrom: "users", where: {name: "alice"}});
await qql({update: "users", set: {name: "bob"}, where: {name: "alice"}});
await qql({deleteFrom: "users", where: {name: "bob"}});

Schema and migration

FAQs

Last updated on 06 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc