Skip to content

Remove useSqlBuilder#900

Open
eric-richardson1 wants to merge 9 commits into
mainfrom
eric/remove-use-sql-builder
Open

Remove useSqlBuilder#900
eric-richardson1 wants to merge 9 commits into
mainfrom
eric/remove-use-sql-builder

Conversation

@eric-richardson1

Copy link
Copy Markdown
Collaborator

No description provided.

loading?: boolean;
};

function showCreateQuery(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna follow up with a PR that makes this use graphql queries like everything else.

Base automatically changed from eric/remove-useDoltQueryBuilder to main May 12, 2026 23:41

@tbantle22 tbantle22 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions/comments

Comment on lines +25 to +26
const { executedQueryString } = useDataTableContext();
const queryString = props.params.q || executedQueryString || "";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this still work for history/diff queries?

Comment on lines +62 to +64
const commitExample = isPostgres
? "SELECT DOLT_COMMIT('-am', 'Add docs');"
: "CALL DOLT_COMMIT('-am', 'Add docs');";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use callProcedure in MergeConflictsDirections for this too? Should move that function to lib

Comment on lines -41 to -43
if (!params.tableName || isDoltSystemTable(params.tableName)) {
return addEmptyLines([defaultQuery]);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

<>
<DataTableLayout params={params} tableName={props.params.tableName}>
<WithContext params={{ ...props.params, q: params.q }} />
<WithContext params={params} />

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should q now be optional or removed from params in the WithContext props?

className={cx(css.item, { [css.selected]: viewingQuery })}
>
<Btn onClick={executeView} className={css.button}>
<Link {...route} className={css.button}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I click on a view I no longer stay in the Views tab in the left nav. It takes me to Tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants