mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(core): Migrate to n8n's typeorm fork (#8590)
This commit is contained in:
committed by
GitHub
parent
a822588012
commit
8e392cfc1d
@@ -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';
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user