
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@prisma-next/sql-runtime
Advanced tools
SQL runtime implementation for Prisma Next.
The SQL runtime package implements the SQL family runtime by composing @prisma-next/runtime-executor with SQL-specific adapters, drivers, and codecs. It provides the public runtime API for SQL-based databases.
Execute SQL query Plans with deterministic verification, guardrails, and feedback. Provide a unified execution surface that works across all SQL query lanes (DSL, ORM, Raw SQL).
RuntimeFamilyAdapter for SQL contracts@prisma-next/runtime-executor - Target-neutral execution engine@prisma-next/sql-contract - SQL contract types@prisma-next/sql-target - SQL family interfaces (legacy transitional package)@prisma-next/operations - Operation registryimport { createRuntime, createRuntimeContext } from '@prisma-next/sql-runtime';
import { createPostgresAdapter } from '@prisma-next/adapter-postgres';
import { createPostgresDriver } from '@prisma-next/driver-postgres/runtime';
const contract = validateContract<Contract>(contractJson);
const adapter = createPostgresAdapter();
const context = createRuntimeContext({
contract,
adapter,
extensions: [pgVector()],
});
const runtime = createRuntime({
adapter,
driver: createPostgresDriver({ connectionString: process.env.DATABASE_URL }),
verify: { mode: 'onFirstUse', requireMarker: false },
context,
plugins: [budgets(), lints()],
});
for await (const row of runtime.execute(plan)) {
console.log(row);
}
createRuntime - Create a SQL runtime instancecreateRuntimeContext - Create a SQL runtime contextRuntimeContext, Extension - Context typesbudgets, lints - SQL-compatible plugins (re-exported from runtime-executor)readContractMarker, writeContractMarker - SQL marker statementsencodeParams, decodeRow - Codec encoding/decoding utilitiesvalidateCodecRegistryCompleteness - Codec validationThe SQL runtime composes runtime-executor with SQL-specific implementations:
RuntimeFamilyAdapter for SQL contractsRuntimeCore and adds SQL-specific encoding/decodingUnit tests verify:
FAQs
SQL runtime implementation for Prisma Next
The npm package @prisma-next/sql-runtime receives a total of 15,343 weekly downloads. As such, @prisma-next/sql-runtime popularity was classified as popular.
We found that @prisma-next/sql-runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.