json-to-sqlite

n8n community node to convert JSON items into a downloadable SQLite database using the JSON-to-SQLite API.

Package Information

Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 1.0.0

Documentation

n8n-nodes-json-to-sqlite

Custom n8n community node untuk mengisi database SQLite (sesuai schema yang sudah ada di JSON to SQLite API) langsung dari workflow n8n.


Fitur

  • Dynamic Schema Dropdown: Memilih schema (brc, default, dll.) langsung dari API (GET /api/v1/schemas).
  • Dynamic Table / Collection Dropdown: Memilih tabel (tbtran, tbblok, tbestate, dll.) dari schema terpilih.
  • Auto-Loaded Column Mapping (resourceMapper): Setelah tabel dipilih, daftar kolom dan tipenya otomatis muncul untuk diisi dengan nilai statis atau n8n Expression ({{ $json.field }}), atau gunakan mode Auto-Map.
  • Binary Output: Menghasilkan file .sqlite sebagai binary property (data) yang siap dikirim ke Google Drive, Email, Write File, atau HTTP Response.

Build

cd n8n-nodes-json-to-sqlite
npm install
npm run build

Instalasi ke n8n

Opsi A: n8n Local (npm / global)

  1. Link package dari folder ini:
    cd d:\Projects\JsonToSqlite\n8n-nodes-json-to-sqlite
    npm link
    
  2. Masuk ke folder custom n8n Anda (biasanya ~/.n8n/custom, buat jika belum ada):
    mkdir -p ~/.n8n/custom
    cd ~/.n8n/custom
    npm link n8n-nodes-json-to-sqlite
    
  3. Restart n8n.

Opsi B: n8n Docker

Mount folder dist/ ke /home/node/.n8n/custom/n8n-nodes-json-to-sqlite atau salin ke volume custom extensions, lalu restart container n8n.
Pada Credentials → JSON to SQLite API, isi API Base URL dengan http://host.docker.internal:3000 (jika API berjalan di host Windows).


Cara Pakai di Workflow n8n

  1. Tambahkan node JSON to SQLite.
  2. Buat/pilih credential JSON to SQLite API (pastikan server npm start di root project sudah berjalan).
  3. Pilih Schema (misal: brc).
  4. Pilih Table (Collection) (misal: tbtran).
  5. Pada bagian Columns, kolom-kolom tabel akan muncul otomatis — isi nilainya atau drag field JSON dari node sebelumnya.
  6. Jalankan node, dan ambil file .sqlite dari binary output property data.

Discussion