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"> |
<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" /> |
<method v="2" /> |
||||||
</configuration> |
</configuration> |
||||||
</component> |
</component> |
@ -1,13 +1,13 @@ |
|||||||
import Filter from '../../../models/Filter'; |
import Filter from '../../../../models/Filter'; |
||||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||||
import { QueryBuilder } from 'knex'; |
import { QueryBuilder } from 'knex'; |
||||||
import { XKnex } from '../..'; |
import { XKnex } from '../../index'; |
||||||
import Column from '../../../models/Column'; |
import Column from '../../../../models/Column'; |
||||||
import LookupColumn from '../../../models/LookupColumn'; |
import LookupColumn from '../../../../models/LookupColumn'; |
||||||
import genRollupSelectv2 from './genRollupSelectv2'; |
import genRollupSelectv2 from './genRollupSelectv2'; |
||||||
import RollupColumn from '../../../models/RollupColumn'; |
import RollupColumn from '../../../../models/RollupColumn'; |
||||||
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
||||||
import FormulaColumn from '../../../models/FormulaColumn'; |
import FormulaColumn from '../../../../models/FormulaColumn'; |
||||||
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
||||||
// import LookupColumn from '../../../models/LookupColumn';
|
// import LookupColumn from '../../../models/LookupColumn';
|
||||||
|
|
@ -1,12 +1,12 @@ |
|||||||
import jsep from 'jsep'; |
import jsep from 'jsep'; |
||||||
import mapFunctionName from '../mapFunctionName'; |
import mapFunctionName from '../mapFunctionName'; |
||||||
import Model from '../../../../models/Model'; |
import Model from '../../../../../models/Model'; |
||||||
import genRollupSelectv2 from '../genRollupSelectv2'; |
import genRollupSelectv2 from '../genRollupSelectv2'; |
||||||
import RollupColumn from '../../../../models/RollupColumn'; |
import RollupColumn from '../../../../../models/RollupColumn'; |
||||||
import FormulaColumn from '../../../../models/FormulaColumn'; |
import FormulaColumn from '../../../../../models/FormulaColumn'; |
||||||
import { XKnex } from '../../..'; |
import { XKnex } from '../../../index'; |
||||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn'; |
||||||
import LookupColumn from '../../../../models/LookupColumn'; |
import LookupColumn from '../../../../../models/LookupColumn'; |
||||||
import { jsepCurlyHook, UITypes } from 'nocodb-sdk'; |
import { jsepCurlyHook, UITypes } from 'nocodb-sdk'; |
||||||
|
|
||||||
// todo: switch function based on database
|
// todo: switch function based on database
|
@ -1,6 +1,6 @@ |
|||||||
import RollupColumn from '../../../models/RollupColumn'; |
import RollupColumn from '../../../../models/RollupColumn'; |
||||||
import { XKnex } from '../..'; |
import { XKnex } from '../../index'; |
||||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||||
import { QueryBuilder } from 'knex'; |
import { QueryBuilder } from 'knex'; |
||||||
import { RelationTypes } from 'nocodb-sdk'; |
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 { isSystemColumn, UITypes } from 'nocodb-sdk'; |
||||||
import Model from '../../../../models/Model'; |
import Model from '../../../../../models/Model'; |
||||||
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
import LinkToAnotherRecordColumn from '../../../../../models/LinkToAnotherRecordColumn'; |
||||||
|
|
||||||
const getAst = async ({ |
const getAst = async ({ |
||||||
query, |
query, |
@ -1,12 +1,12 @@ |
|||||||
import { QueryBuilder } from 'knex'; |
import { QueryBuilder } from 'knex'; |
||||||
import { XKnex } from '../..'; |
import { XKnex } from '../../index'; |
||||||
import Sort from '../../../models/Sort'; |
import Sort from '../../../../models/Sort'; |
||||||
import LinkToAnotherRecordColumn from '../../../models/LinkToAnotherRecordColumn'; |
import LinkToAnotherRecordColumn from '../../../../models/LinkToAnotherRecordColumn'; |
||||||
import genRollupSelectv2 from './genRollupSelectv2'; |
import genRollupSelectv2 from './genRollupSelectv2'; |
||||||
import RollupColumn from '../../../models/RollupColumn'; |
import RollupColumn from '../../../../models/RollupColumn'; |
||||||
import LookupColumn from '../../../models/LookupColumn'; |
import LookupColumn from '../../../../models/LookupColumn'; |
||||||
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
import formulaQueryBuilderv2 from './formulav2/formulaQueryBuilderv2'; |
||||||
import FormulaColumn from '../../../models/FormulaColumn'; |
import FormulaColumn from '../../../../models/FormulaColumn'; |
||||||
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
import { RelationTypes, UITypes } from 'nocodb-sdk'; |
||||||
|
|
||||||
export default async function sortV2( |
export default async function sortV2( |
@ -1,5 +1,5 @@ |
|||||||
import BaseRender from '../../BaseRender'; |
import BaseRender from '../../BaseRender'; |
||||||
import mapDefaultPrimaryValue from '../../../../noco/meta/helpers/mapDefaultPrimaryValue'; |
import mapDefaultPrimaryValue from '../../../../../meta/helpers/mapDefaultPrimaryValue'; |
||||||
import { UITypes } from 'nocodb-sdk'; |
import { UITypes } from 'nocodb-sdk'; |
||||||
|
|
||||||
abstract class BaseModelXcMeta extends BaseRender { |
abstract class BaseModelXcMeta extends BaseRender { |
@ -1,7 +1,7 @@ |
|||||||
import SqlMgrv2 from './SqlMgrv2'; |
import SqlMgrv2 from './SqlMgrv2'; |
||||||
import SqlMgrv2Trans from './SqlMgrv2Trans'; |
import SqlMgrv2Trans from './SqlMgrv2Trans'; |
||||||
import NcMetaIO from '../../noco/meta/NcMetaIO'; |
import NcMetaIO from '../../../meta/NcMetaIO'; |
||||||
import Base from '../../models/Base'; |
import Base from '../../../models/Base'; |
||||||
|
|
||||||
export default class ProjectMgrv2 { |
export default class ProjectMgrv2 { |
||||||
private static sqlMgrMap: { |
private static sqlMgrMap: { |
@ -1,9 +1,9 @@ |
|||||||
import SqlMgrv2 from './SqlMgrv2'; |
import SqlMgrv2 from './SqlMgrv2'; |
||||||
import Base from '../../models/Base'; |
import Base from '../../../models/Base'; |
||||||
import NcConnectionMgrv2 from '../../noco/common/NcConnectionMgrv2'; |
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||||
import { Transaction } from 'knex'; |
import { Transaction } from 'knex'; |
||||||
import { XKnex } from '../../sql-data-mapper'; |
import { XKnex } from '../../sql-data-mapper'; |
||||||
import NcMetaIO from '../../noco/meta/NcMetaIO'; |
import NcMetaIO from '../../../meta/NcMetaIO'; |
||||||
import KnexMigratorv2Tans from '../../sql-migrator/lib/KnexMigratorv2Tans'; |
import KnexMigratorv2Tans from '../../sql-migrator/lib/KnexMigratorv2Tans'; |
||||||
|
|
||||||
export default class SqlMgrv2Trans extends SqlMgrv2 { |
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 Noco from '../Noco'; |
||||||
import { XKnex } from '../../sql-data-mapper'; |
import { XKnex } from '../db/sql-data-mapper'; |
||||||
|
|
||||||
const META_TABLES = { |
const META_TABLES = { |
||||||
graphql: [ |
graphql: [ |
@ -1,15 +1,15 @@ |
|||||||
import CryptoJS from 'crypto-js'; |
import CryptoJS from 'crypto-js'; |
||||||
import { customAlphabet } from 'nanoid'; |
import { customAlphabet } from 'nanoid'; |
||||||
|
|
||||||
import { NcConfig } from '../../../interface/config'; |
import { NcConfig } from '../../interface/config'; |
||||||
import { Knex, XKnex } from '../../sql-data-mapper'; |
import { Knex, XKnex } from '../db/sql-data-mapper'; |
||||||
import Noco from '../Noco'; |
import Noco from '../Noco'; |
||||||
import XcMigrationSource from '../common/XcMigrationSource'; |
import XcMigrationSource from '../migrations/XcMigrationSource'; |
||||||
|
|
||||||
import NcMetaIO, { META_TABLES } from './NcMetaIO'; |
import NcMetaIO, { META_TABLES } from './NcMetaIO'; |
||||||
import NcConnectionMgr from '../common/NcConnectionMgr'; |
import NcConnectionMgr from '../utils/common/NcConnectionMgr'; |
||||||
import { MetaTable } from '../../utils/globals'; |
import { MetaTable } from '../utils/globals'; |
||||||
import XcMigrationSourcev2 from '../common/XcMigrationSourcev2'; |
import XcMigrationSourcev2 from '../migrations/XcMigrationSourcev2'; |
||||||
|
|
||||||
// import { nanoid } from 'nanoid';
|
// import { nanoid } from 'nanoid';
|
||||||
/*import { v4 as uuidv4 } from 'uuid';*/ |
/*import { v4 as uuidv4 } from 'uuid';*/ |
@ -1,6 +1,6 @@ |
|||||||
import { Request, Response, Router } from 'express'; |
import { Request, Response, Router } from 'express'; |
||||||
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
||||||
import ApiToken from '../../../models/ApiToken'; |
import ApiToken from '../../models/ApiToken'; |
||||||
import { Tele } from 'nc-help'; |
import { Tele } from 'nc-help'; |
||||||
import { metaApiMetrics } from '../helpers/apiMetrics'; |
import { metaApiMetrics } from '../helpers/apiMetrics'; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
import { Request, Response, Router } from 'express'; |
import { Request, Response, Router } from 'express'; |
||||||
import Audit from '../../../models/Audit'; |
import Audit from '../../models/Audit'; |
||||||
import { AuditOperationSubTypes, AuditOperationTypes } from 'nocodb-sdk'; |
import { AuditOperationSubTypes, AuditOperationTypes } from 'nocodb-sdk'; |
||||||
import Model from '../../../models/Model'; |
import Model from '../../models/Model'; |
||||||
import { PagedResponseImpl } from '../helpers/PagedResponse'; |
import { PagedResponseImpl } from '../helpers/PagedResponse'; |
||||||
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
import ncMetaAclMw from '../helpers/ncMetaAclMw'; |
||||||
|
|
@ -1,5 +1,5 @@ |
|||||||
import catchError from '../helpers/catchError'; |
import catchError from '../helpers/catchError'; |
||||||
import NocoCache from '../../../cache/NocoCache'; |
import NocoCache from '../../cache/NocoCache'; |
||||||
import { Router } from 'express'; |
import { Router } from 'express'; |
||||||
|
|
||||||
export async function cacheGet(_, res) { |
export async function cacheGet(_, res) { |
@ -1,7 +1,7 @@ |
|||||||
import { Request, Response, Router } from 'express'; |
import { Request, Response, Router } from 'express'; |
||||||
import Model from '../../../../models/Model'; |
import Model from '../../../models/Model'; |
||||||
import Base from '../../../../models/Base'; |
import Base from '../../../models/Base'; |
||||||
import NcConnectionMgrv2 from '../../../common/NcConnectionMgrv2'; |
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||||
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
||||||
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
||||||
import apiMetrics from '../../helpers/apiMetrics'; |
import apiMetrics from '../../helpers/apiMetrics'; |
@ -1,14 +1,14 @@ |
|||||||
import { Request, Response, Router } from 'express'; |
import { Request, Response, Router } from 'express'; |
||||||
import Model from '../../../../models/Model'; |
import Model from '../../../models/Model'; |
||||||
import { nocoExecute } from 'nc-help'; |
import { nocoExecute } from 'nc-help'; |
||||||
import Base from '../../../../models/Base'; |
import Base from '../../../models/Base'; |
||||||
import NcConnectionMgrv2 from '../../../common/NcConnectionMgrv2'; |
import NcConnectionMgrv2 from '../../../utils/common/NcConnectionMgrv2'; |
||||||
import { PagedResponseImpl } from '../../helpers/PagedResponse'; |
import { PagedResponseImpl } from '../../helpers/PagedResponse'; |
||||||
import View from '../../../../models/View'; |
import View from '../../../models/View'; |
||||||
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
import ncMetaAclMw from '../../helpers/ncMetaAclMw'; |
||||||
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
import { getViewAndModelFromRequestByAliasOrId } from './helpers'; |
||||||
import apiMetrics from '../../helpers/apiMetrics'; |
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) { |
async function dataList(req: Request, res: Response) { |
||||||
const { model, view } = await getViewAndModelFromRequestByAliasOrId(req); |
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