synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
77 lines (76 loc) • 2.16 kB
JavaScript
import { jsxs as n, Fragment as s, jsx as e } from "react/jsx-runtime";
import { TextField as d, Box as r, Typography as l, Link as c } from "@mui/material";
import { EntityType as i } from "@sage-bionetworks/synapse-client";
const u = /* @__PURE__ */ n(
r,
{
sx: {
mb: 2.5
},
children: [
/* @__PURE__ */ e(
l,
{
variant: "body1",
sx: {
color: "grey.700",
mb: 1.25
},
children: "If you store normalized data in Synapse tables, views, or datasets, you can combine separate data sources using Materialized Views. A materialized view is a type of Synapse table that is defined using a Synapse SQL statement, which can contain SQL keywords such as JOIN and UNION to combine existing Synapse tables."
}
),
/* @__PURE__ */ e(
c,
{
href: "https://help.synapse.org/docs/Combining-Data-from-Multiple-Table-Sources.2973270158.html",
target: "_blank",
onClick: (t) => {
t.stopPropagation();
},
children: "More about Materialized Views"
}
)
]
}
), y = /* @__PURE__ */ e(
r,
{
sx: {
mb: 2.5
},
children: /* @__PURE__ */ e(
l,
{
variant: "body1",
sx: {
color: "grey.700",
mb: 1.25
},
children: "A Synapse Virtual Table is a type of table that is defined by a Synapse SQL query. Any query on a Virtual Table will execute the defining SQL statement on the referenced table. The defining SQL of a Virtual Table cannot include JOIN clauses on multiple tables."
}
)
}
);
function h(t) {
const { entityType: a, ...o } = t;
return /* @__PURE__ */ n(s, { children: [
a === i.materializedview && u,
a === i.virtualtable && y,
/* @__PURE__ */ e(
d,
{
label: "Defining SQL",
placeholder: "SELECT * FROM syn123",
fullWidth: !0,
multiline: !0,
required: !0,
minRows: 6,
...o
}
)
] });
}
export {
h as default
};
//# sourceMappingURL=SqlDefinedTableEditor.js.map