npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-sqlite3

v0.1.2

Published

Custom n8n nodes for interacting with SQLite3 databases through SQL queries

Downloads

279

Readme

n8n-nodes-sqlite3

This is an n8n community node. It lets you use SQLite3 in your n8n workflows.

SQLite3 is a lightweight, self-contained SQL database engine that stores all data in a single file and requires no server setup. It is ideal for embedded applications, local storage, and small to medium-sized projects. As a public-domain software, it is free for use in both personal and commercial applications.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

To use this node in your n8n instance:

  1. Clone or download the repository containing this node.
  2. Copy the node files into the appropriate directory in your n8n installation. ~/.n8n/custom
  3. Restart your n8n instance to load the new node.

In order to build

npm run build
npm link

Operations

  • Flexible Query Execution: Supports multiple SQL operations (SELECT, INSERT, UPDATE, DELETE, CREATE) to manage your database.
  • Dynamic Query Type Detection: Automatically detects the query type if not explicitly specified.
  • Parameterized Queries: Pass dynamic parameters to your queries for secure and efficient database operations.
  • Spread Results Option: Option to spread the result of a SELECT query into multiple items for further processing in n8n.
  • Error Handling: Built-in error handling that allows you to continue workflow execution even if an error occurs.

Compatibility

This node is compatible with all n8n versions that support custom nodes. Ensure your n8n instance is up to date to take advantage of the latest features and bug fixes.

Usage

  1. Add the SQLite Node: Drag and drop the SQLite Node into your n8n workflow.
  2. Configure Database Path: Set the path to your SQLite database file.
  3. Choose Query Type: Select a query type or leave it as AUTO to detect automatically.
  4. Write Your Query: Enter the SQL query you want to execute.
  5. Provide Arguments (Optional): If your query uses parameters, provide them in JSON format.
  6. Spread Result (Optional): Enable this option if you want each row of a SELECT query to be outputted as a separate item.
  7. Execute the Workflow: Run your workflow to perform the desired SQL operation.

Create table

Create table

Args are not needed for creating a table simply past the query.

Insert

Insert

It's important to specify parameter in this syntax $param. This prevent sql-injection and it's easy to debug an error.

Auto

Auto Select Operation

Auto select is a very powerful resource, check if the query contains one of the default instruction and use that. This example use the SELECT operation.

Spread select results

Select default

Normally nodes return 1 value for each items passed.

Select spread

With spread operator only available for SELECT it's possible to return multiple items for every item requested.

Resources

Contributing

Contributions are welcome! If you have any feature requests, bug reports, or suggestions, feel free to open an issue or submit a pull request.


Start integrating SQLite3 into your n8n workflows today with this community node! 🛠️🚀