feat(frontend): DB Explorer (#2892)
* feat(frontend): Make table cell editable * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): wip * feat(frontend): clean up * fix(frontend): extract db schemas * feat(frontend): v0 done * feat(frontend): v0 done * feat(frontend): v0 done * feat(frontend): fix insert * feat(frontend): fix insert * feat(frontend): remove temp data * feat(frontend): align insert button to the right * feat(frontend): rework columns * feat(frontend): rework insert * feat(frontend): rework insert * feat(frontend): rework insert * feat(frontend): rework insert * feat(frontend): fix jsonb display * feat(frontend): fix reloading issues * feat(frontend): fix reloading issues * feat(frontend): fix reacticity issue * feat(frontend): fix insert * feat(frontend): support nullable default value * feat(frontend): fix build * update * update * db studio v0 --------- Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
writeAllSync,
|
||||
yamlParse,
|
||||
} from "./deps.ts";
|
||||
import { deepEqual } from "./utils.ts";
|
||||
|
||||
export interface ScriptFile {
|
||||
parent_hash?: string;
|
||||
@@ -66,7 +67,7 @@ export async function handleFile(
|
||||
path: string,
|
||||
workspace: string,
|
||||
alreadySynced: string[],
|
||||
message?: string,
|
||||
message?: string
|
||||
): Promise<boolean> {
|
||||
if (
|
||||
!path.includes(".inline_script.") &&
|
||||
@@ -125,8 +126,9 @@ export async function handleFile(
|
||||
typed.is_template === remote.is_template &&
|
||||
typed.kind == remote.kind &&
|
||||
!remote.archived &&
|
||||
(remote?.lock ?? "") == (typed.lock?.join("\n") ?? "") &&
|
||||
JSON.stringify(typed.schema) == JSON.stringify(remote.schema) &&
|
||||
(remote?.lock ?? "").trim() ==
|
||||
(typed.lock?.join("\n") ?? "").trim() &&
|
||||
deepEqual(typed.schema, remote.schema) &&
|
||||
typed.tag == remote.tag &&
|
||||
(typed.ws_error_handler_muted ?? false) ==
|
||||
remote.ws_error_handler_muted &&
|
||||
@@ -140,6 +142,7 @@ export async function handleFile(
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
log.info(
|
||||
colors.yellow.bold(`Creating script with a parent ${remotePath}`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user