mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-16 20:59:23 +00:00
feat: mysql driver working, tests passing.
This commit is contained in:
@@ -95,7 +95,7 @@ export const DataTable = ({
|
||||
</div>
|
||||
);
|
||||
},
|
||||
sortable: true,
|
||||
enableSorting: true,
|
||||
cell: ({ row }) => {
|
||||
const value = row.getValue(column_name) as any;
|
||||
let finalValue = value;
|
||||
|
||||
@@ -23,7 +23,13 @@ declare module "@tanstack/react-router" {
|
||||
}
|
||||
}
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
retry: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
// Render the app
|
||||
const rootElement = document.getElementById("root");
|
||||
|
||||
@@ -29,6 +29,7 @@ function TableView() {
|
||||
return (
|
||||
<div className="p-3 h-layout w-layout">
|
||||
<DataTable
|
||||
key={tableName}
|
||||
dbName={dbName}
|
||||
tableName={tableName}
|
||||
pageSize={pageSize}
|
||||
|
||||
@@ -80,10 +80,12 @@ const createColumns = (dbName: string) => {
|
||||
|
||||
columnHelper.accessor("primary_key", {
|
||||
header: "Primary key",
|
||||
enableSorting: false,
|
||||
}),
|
||||
|
||||
columnHelper.accessor("indexes", {
|
||||
header: "Indexes",
|
||||
enableSorting: false,
|
||||
cell: (props) => {
|
||||
const indexes = props.getValue();
|
||||
if (!indexes) return null;
|
||||
|
||||
Reference in New Issue
Block a user