Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu-dev committed Oct 24, 2024
1 parent 5b058ef commit f1b752a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 218 deletions.
2 changes: 1 addition & 1 deletion web/.eslintcache

Large diffs are not rendered by default.

203 changes: 0 additions & 203 deletions web/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion web/renderer/hooks/useSqlBuilder/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function getPostgresSchemaDefQuery(
): string {
switch (kind) {
case SchemaType.Table:
return `SELECT ordinal_position, column_name, udt_name as data_type, is_nullable, column_default FROM information_schema.columns WHERE${schemaName ? ` table_schema = '${schemaName}' AND` : ""}${dbName ? ` table_catalog= '${dbName}' AND` : ""} table_name = '${name}'`;
return `SELECT ordinal_position, column_name, udt_name as data_type, is_nullable, column_default FROM information_schema.columns WHERE${schemaName ? ` table_schema = '${schemaName}' AND` : ""}${dbName ? ` table_catalog = '${dbName}' AND` : ""} table_name = '${name}'`;
case SchemaType.View:
return `SELECT pg_get_viewdef('${schemaName ?? "public"}.${name}'::regclass, true)`;
case SchemaType.Trigger:
Expand Down
27 changes: 14 additions & 13 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"renderer/**/*.ts",
"renderer/**/*.tsx",
"renderer/components/**/*.tsx",
"renderer/.next/types/**/*.ts",
"jest.setup.ts"
],
"compilerOptions": {
"downlevelIteration": true,
"incremental": true,
"types": ["node"],
"baseUrl": ".",
"target": "es5",
"lib": [
"dom",
Expand All @@ -11,14 +25,12 @@
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@components/*": [
"renderer/components/*"
Expand Down Expand Up @@ -48,22 +60,11 @@
}
],
"strictNullChecks": true,
"downlevelIteration": true
},
"exclude": [
"node_modules",
"web/next.config.js",
"app",
"dist"
],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"renderer/**/*.ts",
"renderer/**/*.tsx",
"renderer/components/**/*.tsx",
"renderer/.next/types/**/*.ts",
"jest.setup.ts"
]
}
1 change: 1 addition & 0 deletions web/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit f1b752a

Please sign in to comment.