mirror of https://github.com/nocodb/nocodb
Naveen MR
3 years ago
371 changed files with 591 additions and 591 deletions
@ -1,5 +1,5 @@
|
||||
<component name="ProjectRunConfigurationManager"> |
||||
<configuration default="false" name="Drop metadb" type="NodeJSConfigurationType" path-to-js-file="deleteMetaDb.js" working-dir="$PROJECT_DIR$/packages/nocodb/src/example"> |
||||
<configuration default="false" name="Drop metadb" type="NodeJSConfigurationType" path-to-js-file="$PROJECT_DIR$/packages/nocodb/src/run/deleteMetaDb.js" working-dir="$PROJECT_DIR$/packages/nocodb/src/run"> |
||||
<method v="2" /> |
||||
</configuration> |
||||
</component> |
@ -1,13 +1,13 @@
|
||||
import Filter from '../../../models/Filter'; |
||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
||||
import Filter from '../../../../models/Filter'; |
||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||
import { QueryBuilder } from 'knex'; |
||||
import { XKnex } from '../..'; |
||||
import Column from '../../../models/Column'; |
||||
import LookupColumn from '../../../models/LookupColumn'; |
||||
import { XKnex } from '../../index'; |
||||
import Column from '../../../../models/Column'; |
||||
import LookupColumn from '../../../../models/LookupColumn'; |
||||
import genRollupSelectv2 from './genRollupSelectv2'; |
||||
import RollupColumn from '../../../models/RollupColumn'; |
||||
import RollupColumn from '../../../../models/RollupColumn'; |
||||
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
||||
import FormulaColumn from '../../../models/FormulaColumn'; |
||||
import FormulaColumn from '../../../../models/FormulaColumn'; |
||||
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
||||
// import LookupColumn from '../../../models/LookupColumn';
|
||||
|
@ -1,12 +1,12 @@
|
||||
import jsep from 'jsep'; |
||||
import mapFunctionName from '../mapFunctionName'; |
||||
import Model from '../../../../models/Model'; |
||||
import Model from '../../../../../models/Model'; |
||||
import genRollupSelectv2 from '../genRollupSelectv2'; |
||||
import RollupColumn from '../../../../models/RollupColumn'; |
||||
import FormulaColumn from '../../../../models/FormulaColumn'; |
||||
import { XKnex } from '../../..'; |
||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||
import LookupColumn from '../../../../models/LookupColumn'; |
||||
import RollupColumn from '../../../../../models/RollupColumn'; |
||||
import FormulaColumn from '../../../../../models/FormulaColumn'; |
||||
import { XKnex } from '../../../index'; |
||||
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn'; |
||||
import LookupColumn from '../../../../../models/LookupColumn'; |
||||
import { jsepCurlyHook, UITypes } from 'nocodb-sdk'; |
||||
|
||||
// todo: switch function based on database
|
@ -1,6 +1,6 @@
|
||||
import RollupColumn from '../../../models/RollupColumn'; |
||||
import { XKnex } from '../..'; |
||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
||||
import RollupColumn from '../../../../models/RollupColumn'; |
||||
import { XKnex } from '../../index'; |
||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||
import { QueryBuilder } from 'knex'; |
||||
import { RelationTypes } from 'nocodb-sdk'; |
||||
|
@ -1,7 +1,7 @@
|
||||
import View from '../../../../models/View'; |
||||
import View from '../../../../../models/View'; |
||||
import { isSystemColumn, UITypes } from 'nocodb-sdk'; |
||||
import Model from '../../../../models/Model'; |
||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||
import Model from '../../../../../models/Model'; |
||||
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn'; |
||||
|
||||
const getAst = async ({ |
||||
query, |
@ -1,12 +1,12 @@
|
||||
import { QueryBuilder } from 'knex'; |
||||
import { XKnex } from '../..'; |
||||
import Sort from '../../../models/Sort'; |
||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
||||
import { XKnex } from '../../index'; |
||||
import Sort from '../../../../models/Sort'; |
||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||
import genRollupSelectv2 from './genRollupSelectv2'; |
||||
import RollupColumn from '../../../models/RollupColumn'; |
||||
import LookupColumn from '../../../models/LookupColumn'; |
||||
import RollupColumn from '../../../../models/RollupColumn'; |
||||
import LookupColumn from '../../../../models/LookupColumn'; |
||||
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
||||
import FormulaColumn from '../../../models/FormulaColumn'; |
||||
import FormulaColumn from '../../../../models/FormulaColumn'; |
||||
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
||||
|
||||
export default async function sortV2( |
@ -1,5 +1,5 @@
|
||||
import BaseRender from '../../BaseRender'; |
||||
import mapDefaultPrimaryValue from '../../../../noco/meta/helpers/mapDefaultPrimaryValue'; |
||||
import mapDefaultPrimaryValue from '../../../../../meta/helpers/mapDefaultPrimaryValue'; |
||||
import { UITypes } from 'nocodb-sdk'; |
||||
|
||||
abstract class BaseModelXcMeta extends BaseRender { |
@ -1,7 +1,7 @@
|
||||
import SqlMgrv2 from './SqlMgrv2'; |
||||
import SqlMgrv2Trans from './SqlMgrv2Trans'; |
||||
import NcMetaIO from '../../noco/meta/NcMetaIO'; |
||||
import Base from '../../models/Base'; |
||||
import NcMetaIO from '../../../meta/NcMetaIO'; |
||||
import Base from '../../../models/Base'; |
||||
|
||||
export default class ProjectMgrv2 { |
||||
private static sqlMgrMap: { |
@ -1,9 +1,9 @@
|
||||
import SqlMgrv2 from './SqlMgrv2'; |
||||
import Base from '../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../noco/common/NcConnectionMgrv2'; |
||||
import Base from '../../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||
import { Transaction } from 'knex'; |
||||
import { XKnex } from '../../sql-data-mapper'; |
||||
import NcMetaIO from '../../noco/meta/NcMetaIO'; |
||||
import NcMetaIO from '../../../meta/NcMetaIO'; |
||||
import KnexMigratorv2Tans from '../../sql-migrator/lib/KnexMigratorv2Tans'; |
||||
|
||||
export default class SqlMgrv2Trans extends SqlMgrv2 { |
@ -1,6 +1,6 @@
|
||||
import { NcConfig } from '../../../interface/config'; |
||||
import { NcConfig } from '../../interface/config'; |
||||
import Noco from '../Noco'; |
||||
import { XKnex } from '../../sql-data-mapper'; |
||||
import { XKnex } from '../db/sql-data-mapper'; |
||||
|
||||
const META_TABLES = { |
||||
graphql: [ |
@ -1,15 +1,15 @@
|
||||
import CryptoJS from 'crypto-js'; |
||||
import { customAlphabet } from 'nanoid'; |
||||
|
||||
import { NcConfig } from '../../../interface/config'; |
||||
import { Knex, XKnex } from '../../sql-data-mapper'; |
||||
import { NcConfig } from '../../interface/config'; |
||||
import { Knex, XKnex } from '../db/sql-data-mapper'; |
||||
import Noco from '../Noco'; |
||||
import XcMigrationSource from '../common/XcMigrationSource'; |
||||
import XcMigrationSource from '../migrations/XcMigrationSource'; |
||||
|
||||
import NcMetaIO, { META_TABLES } from './NcMetaIO'; |
||||
import NcConnectionMgr from '../common/NcConnectionMgr'; |
||||
import { MetaTable } from '../../utils/globals'; |
||||
import XcMigrationSourcev2 from '../common/XcMigrationSourcev2'; |
||||
import NcConnectionMgr from '../utils/common/NcConnectionMgr'; |
||||
import { MetaTable } from '../utils/globals'; |
||||
import XcMigrationSourcev2 from '../migrations/XcMigrationSourcev2'; |
||||
|
||||
// import { nanoid } from 'nanoid';
|
||||
/*import { v4 as uuidv4 } from 'uuid';*/ |
@ -1,6 +1,6 @@
|
||||
import { Request, Response, Router } from 'express'; |
||||
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
||||
import ApiToken from '../../../models/ApiToken'; |
||||
import ApiToken from '../../models/ApiToken'; |
||||
import { Tele } from 'nc-help'; |
||||
import { metaApiMetrics } from '../helpers/apiMetrics'; |
||||
|
@ -1,7 +1,7 @@
|
||||
import { Request, Response, Router } from 'express'; |
||||
import Audit from '../../../models/Audit'; |
||||
import Audit from '../../models/Audit'; |
||||
import { AuditOperationSubTypes, AuditOperationTypes } from 'nocodb-sdk'; |
||||
import Model from '../../../models/Model'; |
||||
import Model from '../../models/Model'; |
||||
import { PagedResponseImpl } from '../helpers/PagedResponse'; |
||||
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
||||
|
@ -1,5 +1,5 @@
|
||||
import catchError from '../helpers/catchError'; |
||||
import NocoCache from '../../../cache/NocoCache'; |
||||
import NocoCache from '../../cache/NocoCache'; |
||||
import { Router } from 'express'; |
||||
|
||||
export async function cacheGet(_, res) { |
@ -1,7 +1,7 @@
|
||||
import { Request, Response, Router } from 'express'; |
||||
import Model from '../../../../models/Model'; |
||||
import Base from '../../../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../../common/NcConnectionMgrv2'; |
||||
import Model from '../../../models/Model'; |
||||
import Base from '../../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
||||
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
||||
import apiMetrics from '../../helpers/apiMetrics'; |
@ -1,14 +1,14 @@
|
||||
import { Request, Response, Router } from 'express'; |
||||
import Model from '../../../../models/Model'; |
||||
import Model from '../../../models/Model'; |
||||
import { nocoExecute } from 'nc-help'; |
||||
import Base from '../../../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../../common/NcConnectionMgrv2'; |
||||
import Base from '../../../models/Base'; |
||||
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||
import { PagedResponseImpl } from '../../helpers/PagedResponse'; |
||||
import View from '../../../../models/View'; |
||||
import View from '../../../models/View'; |
||||
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
||||
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
||||
import apiMetrics from '../../helpers/apiMetrics'; |
||||
import getAst from '../../../../sql-data-mapper/lib/sql/helpers/getAst'; |
||||
import getAst from '../../../db/sql-data-mapper/lib/sql/helpers/getAst'; |
||||
|
||||
async function dataList(req: Request, res: Response) { |
||||
const { model, view } = await getViewAndModelFromRequestByAliasOrId(req); |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue