mirror of
https://github.com/chartdb/chartdb.git
synced 2025-11-12 18:06:35 +00:00
feat(custom-types): add enums and composite types for Postgres (#714)
* feat(postgres): add custom datatypes to import script * import only enums & composite types * init commit to support custom types in postgres * add support in matching custom fields on import + be able to choose it as type for feild * update select box + type names * all but ui * update ui * fix build * fix build * fix --------- Co-authored-by: Guy Ben-Aharon <baguy3@gmail.com>
This commit is contained in:
@@ -5,7 +5,8 @@ export type SidebarSection =
|
||||
| 'tables'
|
||||
| 'relationships'
|
||||
| 'dependencies'
|
||||
| 'areas';
|
||||
| 'areas'
|
||||
| 'customTypes';
|
||||
|
||||
export interface LayoutContext {
|
||||
openedTableInSidebar: string | undefined;
|
||||
@@ -24,6 +25,10 @@ export interface LayoutContext {
|
||||
openAreaFromSidebar: (areaId: string) => void;
|
||||
closeAllAreasInSidebar: () => void;
|
||||
|
||||
openedCustomTypeInSidebar: string | undefined;
|
||||
openCustomTypeFromSidebar: (customTypeId: string) => void;
|
||||
closeAllCustomTypesInSidebar: () => void;
|
||||
|
||||
selectedSidebarSection: SidebarSection;
|
||||
selectSidebarSection: (section: SidebarSection) => void;
|
||||
|
||||
@@ -53,6 +58,10 @@ export const layoutContext = createContext<LayoutContext>({
|
||||
openAreaFromSidebar: emptyFn,
|
||||
closeAllAreasInSidebar: emptyFn,
|
||||
|
||||
openedCustomTypeInSidebar: undefined,
|
||||
openCustomTypeFromSidebar: emptyFn,
|
||||
closeAllCustomTypesInSidebar: emptyFn,
|
||||
|
||||
selectSidebarSection: emptyFn,
|
||||
openTableFromSidebar: emptyFn,
|
||||
closeAllTablesInSidebar: emptyFn,
|
||||
|
||||
Reference in New Issue
Block a user