feat(core): Migrate to n8n's typeorm fork (#8590)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-02-08 15:13:29 +01:00
committed by GitHub
parent a822588012
commit 8e392cfc1d
81 changed files with 273 additions and 338 deletions

View File

@@ -9,7 +9,7 @@ import { SqlDatabase } from 'langchain/sql_db';
import type { SqlCreatePromptArgs } from 'langchain/agents/toolkits/sql';
import { SqlToolkit, createSqlAgent } from 'langchain/agents/toolkits/sql';
import type { BaseLanguageModel } from 'langchain/dist/base_language';
import type { DataSource } from 'typeorm';
import type { DataSource } from '@n8n/typeorm';
import { getSqliteDataSource } from './other/handlers/sqlite';
import { getPostgresDataSource } from './other/handlers/postgres';

View File

@@ -1,5 +1,5 @@
import { type IExecuteFunctions } from 'n8n-workflow';
import { DataSource } from 'typeorm';
import { DataSource } from '@n8n/typeorm';
export async function getMysqlDataSource(this: IExecuteFunctions): Promise<DataSource> {
const credentials = await this.getCredentials('mySql');

View File

@@ -1,5 +1,5 @@
import { type IExecuteFunctions } from 'n8n-workflow';
import { DataSource } from 'typeorm';
import { DataSource } from '@n8n/typeorm';
export async function getPostgresDataSource(this: IExecuteFunctions): Promise<DataSource> {
const credentials = await this.getCredentials('postgres');

View File

@@ -3,7 +3,7 @@ import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
import { BINARY_ENCODING, NodeOperationError } from 'n8n-workflow';
import * as temp from 'temp';
import * as sqlite3 from 'sqlite3';
import { DataSource } from 'typeorm';
import { DataSource } from '@n8n/typeorm';
export function getSqliteDataSource(
this: IExecuteFunctions,