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

@drizzle-team/studio

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drizzle-team/studio - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

2

common.d.ts

@@ -77,3 +77,3 @@ import { SQL, TablesRelationalConfig } from "drizzle-orm";

}) => Promise<Table[]>;
tablesConfig: (schema: string) => {
relations: {
tables: TablesRelationalConfig;

@@ -80,0 +80,0 @@ tableNamesMap: Record<string, string>;

@@ -269,10 +269,5 @@ "use strict";

};
const schemasToTableConfig = Object.fromEntries(
Object.entries(setup.schema).map(([key, val]) => {
const config = (0, import_drizzle_orm2.extractTablesRelationalConfig)(
val,
import_drizzle_orm2.createTableRelationsHelpers
);
return [key, config];
})
const relationsConfig = (0, import_drizzle_orm2.extractTablesRelationalConfig)(
setup.relations,
import_drizzle_orm2.createTableRelationsHelpers
);

@@ -284,3 +279,3 @@ return {

delete: (schema) => deleteFn(db, schemaToTables[schema]),
dropTable: (schema) => dropTableFn(db, schemaToTables[schema], schemasToTableConfig[schema]),
dropTable: (schema) => dropTableFn(db, schemaToTables[schema], relationsConfig),
truncate: (_) => {

@@ -290,5 +285,3 @@ throw new Error("Truncate is not available in SQLite");

tables: tablesFn,
tablesConfig: (schema) => {
return schemasToTableConfig[schema];
}
relations: relationsConfig
};

@@ -479,10 +472,5 @@ };

};
const schemasToTableConfig = Object.fromEntries(
Object.entries(setup.schema).map(([key, val]) => {
const config = (0, import_drizzle_orm3.extractTablesRelationalConfig)(
val,
import_drizzle_orm3.createTableRelationsHelpers
);
return [key, config];
})
const relationsConfig = (0, import_drizzle_orm3.extractTablesRelationalConfig)(
setup.relations,
import_drizzle_orm3.createTableRelationsHelpers
);

@@ -497,5 +485,3 @@ return {

tables,
tablesConfig: (schema) => {
return schemasToTableConfig[schema];
}
relations: relationsConfig
};

@@ -680,10 +666,5 @@ };

};
const schemasToTableConfig = Object.fromEntries(
Object.entries(setup.schema).map(([key, val]) => {
const config = (0, import_drizzle_orm4.extractTablesRelationalConfig)(
val,
import_drizzle_orm4.createTableRelationsHelpers
);
return [key, config];
})
const relationsConfig = (0, import_drizzle_orm4.extractTablesRelationalConfig)(
setup.relations,
import_drizzle_orm4.createTableRelationsHelpers
);

@@ -695,3 +676,3 @@ return {

update: (schema) => updateFn3(db, schemaToTables[schema], schmaToTablesToColumnNames[schema]),
dropTable: (schema) => dropTableFn3(db, schemaToTables[schema], schemasToTableConfig[schema]),
dropTable: (schema) => dropTableFn3(db, schemaToTables[schema], relationsConfig),
truncate: (schema) => {

@@ -701,3 +682,3 @@ throw new Error("truncate not implemented for MySQL");

tables,
tablesConfig: (schema) => schemasToTableConfig[schema]
relations: relationsConfig
};

@@ -704,0 +685,0 @@ };

@@ -7,4 +7,5 @@ import { Relations } from "drizzle-orm";

db: MySqlDatabase<any, any>;
schema: Record<string, Record<string, AnyMySqlTable | Relations>>;
schema: Record<string, Record<string, AnyMySqlTable>>;
relations: Record<string, Relations>;
};
export declare const mysqlQueryEngine: (setup: MySqlSetup) => Promise<QueryEngine>;
{
"name": "@drizzle-team/studio",
"version": "0.0.18",
"version": "0.0.19",
"license": "UNLICENSED",

@@ -5,0 +5,0 @@ "scripts": {

@@ -7,4 +7,5 @@ import { AnyPgTable, PgDatabase } from "drizzle-orm/pg-core";

db: PgDatabase<any, any>;
schema: Record<string, Record<string, AnyPgTable | Relations>>;
schema: Record<string, Record<string, AnyPgTable>>;
relations: Record<string, Relations>;
};
export declare const pgQueryEngine: (setup: PgSetup) => Promise<QueryEngine>;

@@ -8,5 +8,6 @@ import { Relations } from "drizzle-orm";

db: SQLiteDB;
schema: Record<string, Record<string, AnySQLiteTable | Relations>>;
schema: Record<string, Record<string, AnySQLiteTable>>;
relations: Record<string, Relations>;
};
export declare const sqliteQueryEngine: (setup: SQLiteSetup) => Promise<QueryEngine>;
export {};

Sorry, the diff of this file is too big to display

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