New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drizzle-orm-knex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-orm-knex - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

package.json
{
"name": "drizzle-orm-knex",
"version": "0.0.1",
"version": "0.0.2",
"description": "",

@@ -12,5 +12,5 @@ "main": "src/index.ts",

"devDependencies": {
"drizzle-orm": "^0.9.15",
"drizzle-orm": "^0.10.42",
"knex": "^0.95.15"
}
}
import { QueryResult } from "pg";
import { ISession } from 'drizzle-orm/db/session'
import { Knex } from 'knex';
export class KnexSession extends ISession {
public constructor(private knex: any) {
public constructor(private knex: Knex) {
super();
}
public execute(query: string): Promise<QueryResult<any>> {
return this.knex.raw(query);
public execute(query: string, values?: Array<any>): Promise<QueryResult<any>> {
return this.knex.raw(query, values ?? [])
}
parametrized(_: number): string {
return "?"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc