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

@qbobjx/sql-engine

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qbobjx/sql-engine

Embedded SQL engine for OBJX: SQL compilation, execution session contracts, and raw SQL helpers.

Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@qbobjx/sql-engine

Embedded SQL engine for OBJX: SQL compilation, execution session contracts, and raw SQL helpers.

Install

npm install @qbobjx/sql-engine

Quick Usage

import { identifier, sql } from '@qbobjx/sql-engine';

const query = sql`select * from ${identifier('projects')}`;

Model Column Names

When a model column is configured with dbName, @qbobjx/sql-engine compiles SQL against the physical column name and aliases full-model selections back to the logical model key.

import { col, defineModel } from '@qbobjx/core';
import { ObjxSqlCompiler } from '@qbobjx/sql-engine';

const Account = defineModel({
  table: 'accounts',
  columns: {
    id: col.int().primary(),
    tenantId: col.text().configure({ dbName: 'tenant_id' }),
  },
});

const compiled = new ObjxSqlCompiler({ dialect: 'sqlite3' }).compile(
  Account.query().where(({ tenantId }, op) => op.eq(tenantId, 'tenant_a')),
);

The generated SQL uses tenant_id in predicates and result selection, while keeping tenantId as the logical field name exposed by the model.

FAQs

Package last updated on 06 Apr 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