also looking at this
chore: drop imports nothing uses
#1156
9 files
+4
-18
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | import type { SupportedDialect } from '@/types' |
| 2 | 2 | import { isMysqlLike, resolveDialect } from '@/config' |
| 3 | import process from 'node:process' | |
| 4 | 3 | import { bunSql, resolveDatabaseName } from '@/db' |
| 5 | 4 | |
| 6 | 5 | export interface OptimizeOptions { |
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | import type { SupportedDialect } from '@/types' |
| 2 | 2 | import { isMysqlLike, resolveDialect } from '@/config' |
| 3 | import process from 'node:process' | |
| 4 | 3 | import { bunSql, resolveDatabaseName } from '@/db' |
| 5 | 4 | |
| 6 | 5 | export interface WipeOptions { |
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | import { existsSync, readFileSync, unlinkSync } from 'node:fs' |
| 2 | import { dirname, join } from 'node:path' | |
| 3 | import process from 'node:process' | |
| 2 | import { join } from 'node:path' | |
| 4 | 3 | import type { SupportedDialect } from '../types' |
| 5 | 4 | import { config, getPlaceholder, isMysqlLike } from '../config' |
| 6 | 5 | import { createQueryBuilder } from '../index' |
| @@ -1,7 +1,5 @@ | ||
| 1 | 1 | import type { SupportedDialect } from '@/types' |
| 2 | 2 | import { existsSync, readdirSync } from 'node:fs' |
| 3 | import { dirname, join } from 'node:path' | |
| 4 | import process from 'node:process' | |
| 5 | 3 | import { config } from '@/config' |
| 6 | 4 | import { getDialectDriver } from '@/drivers' |
| 7 | 5 | import { createQueryBuilder } from '../index' |
| @@ -5,7 +5,7 @@ import { Buffer } from 'node:buffer' | ||
| 5 | 5 | import { serialize } from 'node:v8' |
| 6 | 6 | import type { SchemaMeta } from './meta' |
| 7 | 7 | import type { ResolvedPivot } from './pivot' |
| 8 | import type { DatabaseSchema, AnyDatabaseSchema } from './schema' | |
| 8 | import type { AnyDatabaseSchema } from './schema' | |
| 9 | 9 | import type { QueryBuilderOptions, QueryHooks, SupportedDialect} from './types' |
| 10 | 10 | import { config, getPlaceholder, getPlaceholders, isMysqlLike, setConfig } from './config' |
| 11 | 11 | import type { DriverConnection, DriverQuery } from './db' |
| @@ -6,18 +6,13 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | import type { |
| 9 | DynamoDBBatchGetItemParams, | |
| 10 | DynamoDBBatchWriteItemParams, | |
| 11 | 9 | DynamoDBComparisonOperator, |
| 12 | 10 | DynamoDBCondition, |
| 13 | 11 | DynamoDBConfig, |
| 14 | DynamoDBDeleteItemParams, | |
| 15 | 12 | DynamoDBDriver, |
| 16 | DynamoDBGetItemParams, | |
| 17 | 13 | DynamoDBPutItemParams, |
| 18 | 14 | DynamoDBQueryParams, |
| 19 | 15 | DynamoDBScanParams, |
| 20 | DynamoDBTransactWriteParams, | |
| 21 | 16 | DynamoDBUpdateItemParams, |
| 22 | 17 | SingleTableEntityMapping, |
| 23 | 18 | } from './drivers/dynamodb' |
| @@ -13,13 +13,9 @@ | ||
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | import type { |
| 16 | DynamoDBConfig, | |
| 17 | DynamoDBDriver, | |
| 18 | 16 | DynamoDBGlobalSecondaryIndex, |
| 19 | 17 | DynamoDBTableDefinition, |
| 20 | SingleTableEntityMapping, | |
| 21 | 18 | } from './drivers/dynamodb' |
| 22 | import { createDynamoDBDriver } from './drivers/dynamodb' | |
| 23 | 19 | import type { DynamoDBFilterOperator, DynamoDBQueryBuilderOptions, DynamoDBValue } from './dynamodb-client' |
| 24 | 20 | import { DynamoDBItemBuilder, DynamoDBQueryBuilder } from './dynamodb-client' |
| 25 | 21 | |
| @@ -23,7 +23,7 @@ import type { DynamoDBMigrationPlan, DynamoDBMigrationOperation, DynamoDBMigrati | ||
| 23 | 23 | import { DynamoDBClient, createClient } from './client' |
| 24 | 24 | import type { DynamoDBClientConfig } from './client' |
| 25 | 25 | import { DynamoDBMigrationTracker } from './migration-tracker' |
| 26 | import { buildMigrationPlan, extractTableDefinition, hashTableDefinition } from './migrations' | |
| 26 | import { buildMigrationPlan, extractTableDefinition } from './migrations' | |
| 27 | 27 | |
| 28 | 28 | // ============================================================================ |
| 29 | 29 | // Types |
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 | * ``` |
| 41 | 41 | */ |
| 42 | 42 | |
| 43 | import { createBrowserModel, isBrowser, type BrowserModelDefinition } from './browser' | |
| 43 | import { createBrowserModel, type BrowserModelDefinition } from './browser' | |
| 44 | 44 | import { clearLocalModels, createModel, type ModelStatic, type ModelDefinition as OrmModelDefinition } from './orm' |
| 45 | 45 | |
| 46 | 46 | // Re-export the browser model types for convenience |