New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@forge/sql

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/sql

Forge SQL sdk

latest
npmnpm
Version
3.0.21
Version published
Maintainers
1
Created
Source

Library for Forge environment.

Usage example:

import sql, { migrationRunner } from "@forge/sql";

const migrationResults = await migrationRunner
  .enqueue(
    'v001_create_example_table',
    `CREATE TABLE IF NOT EXISTS example (id INT PRIMARY KEY AUTOINCREMENT,name TEXT NOT NULL);`
  )
  .enqueue('v002_alter_example_table_add_age', `ALTER TABLE example ADD COLUMN age INT NOT NULL;`)
  .enqueue('v003_alter_example_table_add_index_age', `CREATE INDEX idx_example_age ON example (age);`)
  .run();

const listExamples = await sql.executeRaw('SELECT * FROM example');

const statement = sql.prepare('INSERT INTO test example(name, age) VALUES (?, ?)');

const insertUserResult = await statement.bindParams('John Doe', 42).execute();

FAQs

Package last updated on 30 Mar 2026

Did you know?

Socket

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