Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drizzle-orm-sqlite

Package Overview
Dependencies
Maintainers
3
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-orm-sqlite - npm Package Compare versions

Comparing version 0.15.3 to 0.15.4-1f6c448

sql.js/driver.d.ts

16

package.json
{
"name": "drizzle-orm-sqlite",
"version": "0.15.3",
"version": "0.15.4-1f6c448",
"description": "Drizzle ORM package for SQLite database",

@@ -29,7 +29,9 @@ "scripts": {

"peerDependencies": {
"@types/better-sqlite3": ">=7 <9",
"@cloudflare/workers-types": ">=3",
"@types/better-sqlite3": "*",
"better-sqlite3": ">=7 <9",
"drizzle-orm": ">=0.15 <0.16",
"sqlite3": ">=5 <6",
"@cloudflare/workers-types": ">=3"
"sql.js": ">=1 <2",
"@types/sql.js": "*"
},

@@ -46,2 +48,8 @@ "peerDependenciesMeta": {

},
"sql.js": {
"optional": true
},
"@types/sql.js": {
"optional": true
},
"@cloudflare/workers-types": {

@@ -54,6 +62,8 @@ "optional": true

"@types/better-sqlite3": "^7.6.2",
"@types/sql.js": "^1.4.4",
"better-sqlite3": "^7.6.2",
"drizzle-orm": "link:../drizzle-orm/dist",
"sql.js": "^1.8.0",
"sqlite3": "^5.1.2"
}
}

4

README.md

@@ -8,2 +8,3 @@ # Drizzle ORM | SQLite

| better-sqlite3 | ✅ | |
| sql.js | ✅ | |
| node-sqlite | ⏳ | |

@@ -132,3 +133,4 @@ | bun:sqlite | ✅ |[example project](https://github.com/drizzle-team/drizzle-orm/tree/main/examples/bun-sqlite)|

The list of all column types. You can also create custom types - !!see here!!.
The list of all column types. You can also create custom types - [see here](https://github.com/drizzle-team/drizzle-orm/blob/main/docs/custom-types.md).
```typescript

@@ -135,0 +137,0 @@ integer("...")

@@ -16,3 +16,2 @@ import { Query, SQL } from 'drizzle-orm/sql';

abstract values(placeholderValues?: Record<string, unknown>): ResultKind<T['type'], T['values']>;
finalize(): void;
}

@@ -25,2 +24,5 @@ export declare abstract class SQLiteSession<TResultKind extends 'sync' | 'async' = 'sync' | 'async', TRunResult = unknown> {

}>;
prepareOneTimeQuery(query: Query, fields?: SelectFieldsOrdered): PreparedQuery<PreparedQueryConfig & {
type: TResultKind;
}>;
abstract exec(query: string): void;

@@ -27,0 +29,0 @@ run(query: SQL): ResultKind<TResultKind, TRunResult>;

@@ -5,3 +5,2 @@ "use strict";

class PreparedQuery {
finalize() { }
}

@@ -13,13 +12,16 @@ exports.PreparedQuery = PreparedQuery;

}
prepareOneTimeQuery(query, fields) {
return this.prepareQuery(query, fields);
}
run(query) {
return this.prepareQuery(this.dialect.sqlToQuery(query)).run();
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query)).run();
}
all(query) {
return this.prepareQuery(this.dialect.sqlToQuery(query)).all();
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query)).all();
}
get(query) {
return this.prepareQuery(this.dialect.sqlToQuery(query)).get();
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query)).get();
}
values(query) {
return this.prepareQuery(this.dialect.sqlToQuery(query)).values();
return this.prepareOneTimeQuery(this.dialect.sqlToQuery(query)).values();
}

@@ -26,0 +28,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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