
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@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 13,027 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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.