
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@prisma-next/sql-operations
Advanced tools
SQL-specific operation types and registry for Prisma Next.
This package provides SQL-specific operation types that extend the generic OperationRegistry from @prisma-next/operations with SQL lowering specs. It lives in the shared plane to allow both migration-plane (emitter/CLI) and runtime-plane (lanes/runtime) packages to import operation types without violating plane boundaries. The package contains only types and pure helpers (no pack I/O, no manifest assembly); manifest assembly is handled by the CLI/tooling layer.
SQL Operation Types: SQL-specific operation entry and descriptor types
SqlOperationEntry: Extends OperationEntry with a lowering field (SqlLoweringSpec)SqlOperationDescriptor: Alias for SqlOperationEntry used at registration sitesSqlOperationDescriptors: Readonly<Record<string, SqlOperationDescriptor>> — the keyed-record shape adapter/extension queryOperations() factories returnSqlLoweringSpec: SQL-specific lowering specification (targetFamily, strategy, template)SqlOperationRegistry: Typed registry alias (OperationRegistry<SqlOperationEntry>)Registry Factory: Typed factory for creating SQL operation registries
createSqlOperationRegistry(): Creates a typed SqlOperationRegistry@prisma-next/operations (core operation registry types)@prisma-next/sql-relational-core (uses for operation execution)@prisma-next/sql-runtime (uses for operation signature types)@prisma-next/cli (uses types when assembling registries from packs)flowchart TD
subgraph "Core Ring (Shared Plane)"
OPS[@prisma-next/operations]
SQL_OPS[@prisma-next/sql-operations]
end
subgraph "Tooling Ring (Migration Plane)"
CLI[@prisma-next/cli]
end
subgraph "Lanes Ring (Runtime Plane)"
REL_CORE[@prisma-next/sql-relational-core]
end
subgraph "Runtime Ring (Runtime Plane)"
SQL_RUNTIME[@prisma-next/sql-runtime]
end
OPS --> SQL_OPS
CLI --> SQL_OPS
SQL_OPS --> REL_CORE
SQL_OPS --> SQL_RUNTIME
import {
createSqlOperationRegistry,
type SqlOperationDescriptor,
} from '@prisma-next/sql-operations';
const registry = createSqlOperationRegistry();
const descriptor: SqlOperationDescriptor = {
self: { codecId: 'pg/vector@1' },
impl: () => ({ returnType: { codecId: 'pg/float8@1', nullable: false } }),
};
registry.register('cosineDistance', descriptor);
const entries = registry.entries(); // Record<string, SqlOperationEntry>
For tooling code that works with extension packs, manifest assembly happens in the CLI layer. See @prisma-next/cli for pack assembly utilities.
FAQs
SQL-specific operations for Prisma Next
The npm package @prisma-next/sql-operations receives a total of 12,299 weekly downloads. As such, @prisma-next/sql-operations popularity was classified as popular.
We found that @prisma-next/sql-operations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.