decocms 2.178.0 → 2.178.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DOAxiEBN.js → AlertCircle-12chRuly.js} +1 -1
- package/dist/client/assets/{AlignLeft-CRMPlioa.js → AlignLeft-_LT9deOt.js} +1 -1
- package/dist/client/assets/{ArrowDown-xJyK-tRR.js → ArrowDown-7rbX3zqZ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B-tpcvF0.js → ArrowLeft-erI8s3G2.js} +1 -1
- package/dist/client/assets/{ArrowUp-BO7WH9Uq.js → ArrowUp-DoIG5eQh.js} +1 -1
- package/dist/client/assets/{Building02-D30T2TCD.js → Building02-Dr7IyBdv.js} +1 -1
- package/dist/client/assets/{Check-BTP9VTUM.js → Check-DW8AVFkq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DoZ7ERyW.js → CheckCircle-hBpanOsI.js} +1 -1
- package/dist/client/assets/{CheckSquare-Dbh9CJyx.js → CheckSquare-Cr3IzSXp.js} +1 -1
- package/dist/client/assets/{CheckVerified02-CyloHbYs.js → CheckVerified02-r17ymUCs.js} +1 -1
- package/dist/client/assets/{ChevronDown-CLapIRmf.js → ChevronDown-BIRGQoZ5.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CMUbV0KP.js → ChevronLeft-D-e7F7Gj.js} +1 -1
- package/dist/client/assets/{ChevronRight-DWZgTrde.js → ChevronRight-DsjLlugM.js} +1 -1
- package/dist/client/assets/{ChevronUp-DGOtRvEF.js → ChevronUp-Bi3NMXzv.js} +1 -1
- package/dist/client/assets/{Clock-BYjyd9hX.js → Clock-D4xJnA3P.js} +1 -1
- package/dist/client/assets/{Code01-BkNgeom6.js → Code01-YGq5QwlZ.js} +1 -1
- package/dist/client/assets/{Container-D7IaxBn4.js → Container-DHyMOW_p.js} +1 -1
- package/dist/client/assets/{Copy01-BJ5f3Ft8.js → Copy01-DkcjIGiS.js} +1 -1
- package/dist/client/assets/{Dataflow03-DE7FXw07.js → Dataflow03-CD3eo8oO.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BFhhKBhk.js → DotsHorizontal-CjYGc80C.js} +1 -1
- package/dist/client/assets/{DotsVertical-CmyZ1eER.js → DotsVertical-2nyye7GD.js} +1 -1
- package/dist/client/assets/{Download01-C0zy7iAO.js → Download01-BvtNZalG.js} +1 -1
- package/dist/client/assets/{Edit01-BsJ32les.js → Edit01-CoeKfJ-u.js} +1 -1
- package/dist/client/assets/{Edit05-BD2d2k-5.js → Edit05-CbbEzOoe.js} +1 -1
- package/dist/client/assets/{Eye-B3PAdhmZ.js → Eye-hBqNQHpc.js} +1 -1
- package/dist/client/assets/{EyeOff-_G9JY6d-.js → EyeOff-CJoTkAtN.js} +1 -1
- package/dist/client/assets/{File02-CAND2NHE.js → File02-D19u2hUl.js} +1 -1
- package/dist/client/assets/{File06-Bvs2lp94.js → File06-Bp4ioOvR.js} +1 -1
- package/dist/client/assets/{FilterLines-D-lo1vJH.js → FilterLines-Dvk7BhWf.js} +1 -1
- package/dist/client/assets/{Globe01-jlGiKRJ-.js → Globe01-B8Ib7knn.js} +1 -1
- package/dist/client/assets/{Globe02-DpkPR1qQ.js → Globe02-wRhoc1N5.js} +1 -1
- package/dist/client/assets/{Grid01-Bootsry8.js → Grid01-C5e9ReQ4.js} +1 -1
- package/dist/client/assets/{Home02-Cn5GN0Zh.js → Home02-JZJR9jmQ.js} +1 -1
- package/dist/client/assets/{Image01-BGiNuXLR.js → Image01-DjoSkYp_.js} +1 -1
- package/dist/client/assets/{Inbox01-QN0h6e9y.js → Inbox01-ClVaT7W5.js} +1 -1
- package/dist/client/assets/{InfoCircle-BlKvj0NG.js → InfoCircle-DzyfpQes.js} +1 -1
- package/dist/client/assets/{Key01-p6odXPoE.js → Key01-qNySmY39.js} +1 -1
- package/dist/client/assets/{LayersTwo01-Dj6OMOTN.js → LayersTwo01-dfSlQT0y.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Bl9wlb-l.js → LayoutLeft-B2KZfn2n.js} +1 -1
- package/dist/client/assets/{Link01-GDNtvq6w.js → Link01-Cz_ZRKoB.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cmp1Jq7T.js → LinkExternal01-CKvCiQnV.js} +1 -1
- package/dist/client/assets/{List-BFzJ8d3-.js → List-NLa0AhO4.js} +1 -1
- package/dist/client/assets/{Loading01-Bgt2pWQu.js → Loading01-Bb8FCosd.js} +1 -1
- package/dist/client/assets/{Lock01-CrtAKCVY.js → Lock01-CnZITIks.js} +1 -1
- package/dist/client/assets/{Play-C6mSLsW0.js → Play-Bw5lQw7j.js} +1 -1
- package/dist/client/assets/{Plus-Bah3bfIq.js → Plus-CajZ9VfC.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D6TQ-sWU.js → RefreshCcw01-B_NTitRE.js} +1 -1
- package/dist/client/assets/{Save01-DMdPXvfp.js → Save01-8oEsqMkJ.js} +1 -1
- package/dist/client/assets/{SearchMd-CbNARIB_.js → SearchMd-eZWeU0sP.js} +1 -1
- package/dist/client/assets/{Settings01-ncSo0UF1.js → Settings01-ClPVpLPy.js} +1 -1
- package/dist/client/assets/{Shield01-jjVa8gNb.js → Shield01-N4ace-oo.js} +1 -1
- package/dist/client/assets/{Terminal-BkHJq74m.js → Terminal-CGwuP-_5.js} +1 -1
- package/dist/client/assets/{Tool01-CCSFIqz9.js → Tool01-D1m8i7Ez.js} +1 -1
- package/dist/client/assets/{Trash01-DJLT0hlL.js → Trash01-B_4PTwjI.js} +1 -1
- package/dist/client/assets/{Upload01-CrylBwgE.js → Upload01-CLIOr3Tj.js} +1 -1
- package/dist/client/assets/{Users03-ClHTtWuU.js → Users03-Bv-hUQkl.js} +1 -1
- package/dist/client/assets/{X-Dr3IGE6q.js → X-LzehymHS.js} +1 -1
- package/dist/client/assets/{XClose-CM_PUH0D.js → XClose-CcNXqPQc.js} +1 -1
- package/dist/client/assets/{Zap-DNAzZ691.js → Zap-BFN1DqIC.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-D9yVR2mI.js → agent-connections-preview-3pYXfstj.js} +1 -1
- package/dist/client/assets/{agent-detail-D9yhjqjE.js → agent-detail-DMK-u3yi.js} +1 -1
- package/dist/client/assets/{agents-UYgbyoc-.js → agents-Wfe5dNfh.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-CKXeyPmY.js → ai-providers-logos-CCp39UCk.js} +1 -1
- package/dist/client/assets/{alert-dialog-CGRFjIvo.js → alert-dialog-B_ae3oRt.js} +1 -1
- package/dist/client/assets/{auth-catchall-DJtyBhDQ.js → auth-catchall-DAx9m28t.js} +1 -1
- package/dist/client/assets/{automation-detail-Da-KIL0v.js → automation-detail-DfFkGT_5.js} +1 -1
- package/dist/client/assets/{automations-BBeFyOp2.js → automations-A8NOzTSS.js} +1 -1
- package/dist/client/assets/{avatar-B6y4oqG6.js → avatar-B2yArl-q.js} +1 -1
- package/dist/client/assets/{badge-BWsagPlP.js → badge-DtRom7JO.js} +1 -1
- package/dist/client/assets/{binder-BfA1Jrrc.js → binder-D4cqx_Kx.js} +1 -1
- package/dist/client/assets/{breadcrumb-D8mb9kpq.js → breadcrumb-C2RG4nAQ.js} +1 -1
- package/dist/client/assets/{card-C0MItTW_.js → card-B8qDZGCZ.js} +1 -1
- package/dist/client/assets/{checkbox-DUU3Nuea.js → checkbox-B1rexahu.js} +1 -1
- package/dist/client/assets/{collapsible-CtLdTa6t.js → collapsible-BtjeaBAE.js} +1 -1
- package/dist/client/assets/{collection-detail-DPIki4up.js → collection-detail-BaBGI9i2.js} +1 -1
- package/dist/client/assets/{collection-display-button-DdFInvSR.js → collection-display-button-CpVZ4wHm.js} +1 -1
- package/dist/client/assets/{collection-search-CGfzh4mC.js → collection-search-BYV7N3mr.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DLe2aR6i.js → collection-table-wrapper-CHFJQd21.js} +1 -1
- package/dist/client/assets/{collection-tabs-DAHXpc2n.js → collection-tabs-CJEa3dRy.js} +1 -1
- package/dist/client/assets/{command-C4HnUxgr.js → command-Drksh_DO.js} +1 -1
- package/dist/client/assets/{connection-card-DRd8H1I5.js → connection-card-Bak2l1_M.js} +1 -1
- package/dist/client/assets/{connection-detail-MKWBWpRr.js → connection-detail-BKy2ZsS6.js} +1 -1
- package/dist/client/assets/{connections-CIQDC3QM.js → connections-Dxf4eIOE.js} +1 -1
- package/dist/client/assets/{constants-C6R-Odkq.js → constants-D7qXOYRn.js} +1 -1
- package/dist/client/assets/{context-BFTRA5vP.js → context-DxQMlFKC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Bez2nZe0.js → create-organization-dialog-CNWB-72r.js} +1 -1
- package/dist/client/assets/{create-project-dialog-MCGuKGij.js → create-project-dialog-BeIY4Oy9.js} +1 -1
- package/dist/client/assets/{danger-D1zng7LS.js → danger-YWbxrjNq.js} +1 -1
- package/dist/client/assets/{danger-zone-DbcRzYYG.js → danger-zone-DGg0ZzSy.js} +1 -1
- package/dist/client/assets/{dependencies-B8EkZe-H.js → dependencies-DtAVTWu-.js} +1 -1
- package/dist/client/assets/{dialog-Bw5T2ogY.js → dialog-ChXYvlDt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dan8nMb8.js → dropdown-menu-BxlQMXgW.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BDxV3RAS.js → dynamic-plugin-layout-JpZTv0Ay.js} +1 -1
- package/dist/client/assets/{editable-task-title-wfBXYVIh.js → editable-task-title-Cm-uIwFs.js} +1 -1
- package/dist/client/assets/{empty-state-CoA3_x_6.js → empty-state-qLM_bVsv.js} +1 -1
- package/dist/client/assets/{empty-state-C1iyyf7G.js → empty-state-xIvMMy-_.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CxyeKMFS.js → env-vars-editor-Yss1wn0m.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C8ZedtM3.js → extract-connection-data-48N591A_.js} +1 -1
- package/dist/client/assets/{file-browser-CShFs9BG.js → file-browser-BbqpPFZK.js} +2 -2
- package/dist/client/assets/{form-B1LLlQBa.js → form-CaFPTMVC.js} +1 -1
- package/dist/client/assets/{general-Dnfj_B7U.js → general-DI9irVIQ.js} +1 -1
- package/dist/client/assets/{generate-id-WpAuYSZF.js → generate-id-BiV6m8fS.js} +1 -1
- package/dist/client/assets/{grid-view-PzYdekcz.js → grid-view-DurgUMuo.js} +1 -1
- package/dist/client/assets/{home-CKa-gWjN.js → home-CspK560n.js} +1 -1
- package/dist/client/assets/{index-lUO5B2Do.js → index-ChUIqRBi.js} +1 -1
- package/dist/client/assets/{index-D-AXXJqO.js → index-CqWJIMlG.js} +1 -1
- package/dist/client/assets/{index-CgSAwZ8g.js → index-CqtWW-Tq.js} +1 -1
- package/dist/client/assets/{index-DtZLm-Fz.js → index-CqyqI90F.js} +1 -1
- package/dist/client/assets/{index-BaVHKLOw.js → index-De1iYnQy.js} +1 -1
- package/dist/client/assets/{index-De7oAufQ.js → index-NjMxPJgF.js} +3 -3
- package/dist/client/assets/{index-BkxamE0W.js → index-TV8hw8s3.js} +1 -1
- package/dist/client/assets/{index-CVayrapI.js → index-YL7q5tyF.js} +1 -1
- package/dist/client/assets/{index-BFJo8BQ3.js → index-YRudAQp7.js} +1 -1
- package/dist/client/assets/{index-J5pIXVfD.js → index-yiVP4brl.js} +1 -1
- package/dist/client/assets/{index-OdE2HBl6.js → index-zWpUeKAz.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C7xXp1jr.js → infiniteQueryObserver-JZ0YxCW-.js} +1 -1
- package/dist/client/assets/{input-_VKm0O_1.js → input-B89sozd8.js} +1 -1
- package/dist/client/assets/{integration-icon-BkY1vh6I.js → integration-icon-BPVDVJvP.js} +1 -1
- package/dist/client/assets/{label-BhDDQ3-n.js → label-DkiEYJcU.js} +1 -1
- package/dist/client/assets/{layout-BIFV7MZL.js → layout-Cqn-h1Jz.js} +1 -1
- package/dist/client/assets/{layout-CZKgiZuG.js → layout-DcmGLVHZ.js} +1 -1
- package/dist/client/assets/{login-uo65TNIo.js → login-qT_ItpIx.js} +1 -1
- package/dist/client/assets/{logo-upload-CXS8-AgL.js → logo-upload-CoGaedUC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BcsrfZJp.js → mcp-app-renderer-By1mQEU9.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Bp6C5W6n.js → mcp-server-card-B3Nrrgyk.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Ctbkl5jL.js → mcp-server-detail-DMfy0V9h.js} +2 -2
- package/dist/client/assets/{members-DCfL7gNX.js → members-Q81LXZu1.js} +1 -1
- package/dist/client/assets/{monaco-editor-DPC7_J-G.js → monaco-editor-ZB27PMAe.js} +1 -1
- package/dist/client/assets/{monitoring-ByXLzXVV.js → monitoring-C31A03PZ.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-YR1gT6FF.js → monitoring-dashboard-edit-Dfi8Jxeb.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-BbtnIBfa.js → monitoring-dashboard-view-CxjxBHLW.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Df9ANyzv.js → monitoring-stats-row-CAn-8pVZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-DAQSPrcu.js → oauth-callback-B8DRnSok.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BM5LYNPq.js → oauth-callback-ai-provider-CsTCxPAY.js} +1 -1
- package/dist/client/assets/{org-ai-providers-6KYO-veN.js → org-ai-providers-DaYyItUL.js} +1 -1
- package/dist/client/assets/{page-JhhtSWZh.js → page-BjLk0DX_.js} +1 -1
- package/dist/client/assets/{page-30eMAMiN.js → page-C2I5Nlmu.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Cl2I2geD.js → plugin-empty-state-K02oXRNN.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-R2BzERoW.js → plugin-empty-state-l30u7dec.js} +1 -1
- package/dist/client/assets/{plugin-header-Bakz3z0e.js → plugin-header-B_wkRb4Y.js} +1 -1
- package/dist/client/assets/{plugin-header-aEsNVQjp.js → plugin-header-CE-BhILm.js} +1 -1
- package/dist/client/assets/plugins-6p4XZdw1.js +1 -0
- package/dist/client/assets/{popover-D_qGIJiq.js → popover-Br8QkMK3.js} +1 -1
- package/dist/client/assets/{project-app-view-BFgEphLV.js → project-app-view-CRe7LVZk.js} +1 -1
- package/dist/client/assets/{project-layout-C8oyOOGc.js → project-layout-Bg1hlIaM.js} +1 -1
- package/dist/client/assets/{project-plugins-BVt_WzcU.js → project-plugins-BHOZZsH7.js} +1 -1
- package/dist/client/assets/{projects-list-C02pKlJj.js → projects-list-i4ZvUqtI.js} +1 -1
- package/dist/client/assets/{registry-layout-C-yQnDXG.js → registry-layout-DQV7LhSo.js} +1 -1
- package/dist/client/assets/{registry-utils-Dqc_kCiP.js → registry-utils-cjX9P5J9.js} +1 -1
- package/dist/client/assets/{reset-password-Cqvt_aDI.js → reset-password-Cgcrl5ZG.js} +1 -1
- package/dist/client/assets/{resizable-CO0Uh73H.js → resizable-Nu1SqaJD.js} +1 -1
- package/dist/client/assets/{save-actions-ju1vjafj.js → save-actions-CVl6VtT2.js} +1 -1
- package/dist/client/assets/{scroll-area-DL2xzsPP.js → scroll-area-BTJQ86Ry.js} +1 -1
- package/dist/client/assets/{select-B4liIMVc.js → select-Dx3T3-4n.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-CuflMlTt.js → select-virtual-mcp-BS537pmy.js} +1 -1
- package/dist/client/assets/{sheet-Cjr3EcYH.js → sheet-C3HM0Uwr.js} +1 -1
- package/dist/client/assets/{shell-layout-DfTROeX_.js → shell-layout-Bco0BFOl.js} +2 -2
- package/dist/client/assets/{sidebar-settings-BljNzJVO.js → sidebar-settings-JhN4X_jg.js} +1 -1
- package/dist/client/assets/{skeleton-Bt7MRTvB.js → skeleton-Cjm8s7CT.js} +1 -1
- package/dist/client/assets/{spinner-Cse1gKnw.js → spinner-Dzx7B3Jl.js} +1 -1
- package/dist/client/assets/{store-invite-D8XeTZbu.js → store-invite-BPcFU0aw.js} +1 -1
- package/dist/client/assets/{switch-DHS6rwq-.js → switch-CA_oYDia.js} +1 -1
- package/dist/client/assets/{table-BPkNFl3F.js → table-C-1rP_rt.js} +1 -1
- package/dist/client/assets/{tabs-D9xzXdQn.js → tabs-BSOe8gLq.js} +1 -1
- package/dist/client/assets/{task-status-DPcRgg7n.js → task-status-DYx9R7EL.js} +24 -24
- package/dist/client/assets/tasks-D1X8oLa3.js +1 -0
- package/dist/client/assets/{tasks-panel-i3VUreUx.js → tasks-panel-BJ3TfA-_.js} +1 -1
- package/dist/client/assets/{textarea-C_pKpP9s.js → textarea-DIJzFUWn.js} +1 -1
- package/dist/client/assets/{time-range-picker-BuykPBni.js → time-range-picker-CGBh-D6p.js} +1 -1
- package/dist/client/assets/{toggle-group-VpRSF_Gl.js → toggle-group-DlZGDyPQ.js} +1 -1
- package/dist/client/assets/{tools-list-DDFWIxxm.js → tools-list-D-T64862.js} +1 -1
- package/dist/client/assets/{tooltip-C4rlkzSj.js → tooltip-BJMSu0c2.js} +1 -1
- package/dist/client/assets/{topbar-portal-CF1YRovU.js → topbar-portal-ChPXVsi1.js} +1 -1
- package/dist/client/assets/{types-DQbIwrMI.js → types-BHeMLyAV.js} +1 -1
- package/dist/client/assets/{use-automations-C1HgdvUZ.js → use-automations-Bmw3x7Dk.js} +1 -1
- package/dist/client/assets/{use-collections-CN-KZdhF.js → use-collections-C0cYiFfV.js} +1 -1
- package/dist/client/assets/{use-connection-C4RNTGYe.js → use-connection-CHFdKnsr.js} +1 -1
- package/dist/client/assets/{use-copy-Cyun7kVE.js → use-copy-xhdji_Bl.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-4JnIm_fY.js → use-create-virtual-mcp-B7odZ_c3.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B1b4xMpn.js → use-infinite-scroll-CPhZNIw7.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-CytyaLQX.js → use-install-from-registry-BzwuBLOx.js} +1 -1
- package/dist/client/assets/{use-list-state-CCkxYz8q.js → use-list-state-CbsN6RbJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BGZnglwN.js → use-mcp-prompts-Bel4H4rh.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DSKOWSEO.js → use-mcp-resources-qGdymfRz.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C2aTDAuJ.js → use-mcp-tools-BCZI_Wqc.js} +1 -1
- package/dist/client/assets/{use-members-DjL_-1xN.js → use-members-B4ncWtMV.js} +1 -1
- package/dist/client/assets/{use-mobile-CMHMyYVi.js → use-mobile-DOUfTohp.js} +1 -1
- package/dist/client/assets/{use-project-DxPDjIre.js → use-project-b5C3lq5-.js} +1 -1
- package/dist/client/assets/{use-store-discovery-BBXrVOcG.js → use-store-discovery-B402mTHd.js} +1 -1
- package/dist/client/assets/{use-view-mode-CXln2RGt.js → use-view-mode-ss3eRodO.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-AdVimCkX.js → use-virtual-mcp-BP6aaUzw.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BXDrDvlH.js +1 -0
- package/dist/client/assets/{useMutation-BDzOMrvq.js → useMutation-68NxhXCf.js} +1 -1
- package/dist/client/assets/useQuery-BYBCFxgb.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-X3jXt04i.js +1 -0
- package/dist/client/assets/{user-DSh4pFej.js → user-iDZRuimU.js} +1 -1
- package/dist/client/assets/{workflow-mIahQD3R.js → workflow-CrrTPehP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/migrate.js +1 -1
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/pg-pool/LICENSE +21 -0
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/plugins-CJOgdAgY.js +0 -1
- package/dist/client/assets/tasks-CAcIEtSF.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Dw4aF3nd.js +0 -1
- package/dist/client/assets/useQuery-CTePvczf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-All2JJwt.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export default class BufferList {
|
|
2
|
+
constructor(public buffers: Buffer[] = []) {}
|
|
3
|
+
|
|
4
|
+
public add(buffer: Buffer, front?: boolean) {
|
|
5
|
+
this.buffers[front ? 'unshift' : 'push'](buffer)
|
|
6
|
+
return this
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
public addInt16(val: number, front?: boolean) {
|
|
10
|
+
return this.add(Buffer.from([val >>> 8, val >>> 0]), front)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public getByteLength() {
|
|
14
|
+
return this.buffers.reduce(function (previous, current) {
|
|
15
|
+
return previous + current.length
|
|
16
|
+
}, 0)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public addInt32(val: number, first?: boolean) {
|
|
20
|
+
return this.add(
|
|
21
|
+
Buffer.from([(val >>> 24) & 0xff, (val >>> 16) & 0xff, (val >>> 8) & 0xff, (val >>> 0) & 0xff]),
|
|
22
|
+
first
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public addCString(val: string, front?: boolean) {
|
|
27
|
+
const len = Buffer.byteLength(val)
|
|
28
|
+
const buffer = Buffer.alloc(len + 1)
|
|
29
|
+
buffer.write(val)
|
|
30
|
+
buffer[len] = 0
|
|
31
|
+
return this.add(buffer, front)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public addString(val: string, front?: boolean) {
|
|
35
|
+
const len = Buffer.byteLength(val)
|
|
36
|
+
const buffer = Buffer.alloc(len)
|
|
37
|
+
buffer.write(val)
|
|
38
|
+
return this.add(buffer, front)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public addChar(char: string, first?: boolean) {
|
|
42
|
+
return this.add(Buffer.from(char, 'utf8'), first)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public addByte(byte: number) {
|
|
46
|
+
return this.add(Buffer.from([byte]))
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public join(appendLength?: boolean, char?: string): Buffer {
|
|
50
|
+
let length = this.getByteLength()
|
|
51
|
+
if (appendLength) {
|
|
52
|
+
this.addInt32(length + 4, true)
|
|
53
|
+
return this.join(false, char)
|
|
54
|
+
}
|
|
55
|
+
if (char) {
|
|
56
|
+
this.addChar(char, true)
|
|
57
|
+
length++
|
|
58
|
+
}
|
|
59
|
+
const result = Buffer.alloc(length)
|
|
60
|
+
let index = 0
|
|
61
|
+
this.buffers.forEach(function (buffer) {
|
|
62
|
+
buffer.copy(result, index, 0)
|
|
63
|
+
index += buffer.length
|
|
64
|
+
})
|
|
65
|
+
return result
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
// https://www.postgresql.org/docs/current/protocol-message-formats.html
|
|
2
|
+
import BufferList from './buffer-list'
|
|
3
|
+
|
|
4
|
+
const buffers = {
|
|
5
|
+
readyForQuery: function () {
|
|
6
|
+
return new BufferList().add(Buffer.from('I')).join(true, 'Z')
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
authenticationOk: function () {
|
|
10
|
+
return new BufferList().addInt32(0).join(true, 'R')
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
authenticationCleartextPassword: function () {
|
|
14
|
+
return new BufferList().addInt32(3).join(true, 'R')
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
authenticationMD5Password: function () {
|
|
18
|
+
return new BufferList()
|
|
19
|
+
.addInt32(5)
|
|
20
|
+
.add(Buffer.from([1, 2, 3, 4]))
|
|
21
|
+
.join(true, 'R')
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
authenticationSASL: function () {
|
|
25
|
+
return new BufferList().addInt32(10).addCString('SCRAM-SHA-256').addCString('').join(true, 'R')
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
authenticationSASLContinue: function () {
|
|
29
|
+
return new BufferList().addInt32(11).addString('data').join(true, 'R')
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
authenticationSASLFinal: function () {
|
|
33
|
+
return new BufferList().addInt32(12).addString('data').join(true, 'R')
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
parameterStatus: function (name: string, value: string) {
|
|
37
|
+
return new BufferList().addCString(name).addCString(value).join(true, 'S')
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
backendKeyData: function (processID: number, secretKey: number) {
|
|
41
|
+
return new BufferList().addInt32(processID).addInt32(secretKey).join(true, 'K')
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
commandComplete: function (string: string) {
|
|
45
|
+
return new BufferList().addCString(string).join(true, 'C')
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
rowDescription: function (fields: any[]) {
|
|
49
|
+
fields = fields || []
|
|
50
|
+
const buf = new BufferList()
|
|
51
|
+
buf.addInt16(fields.length)
|
|
52
|
+
fields.forEach(function (field) {
|
|
53
|
+
buf
|
|
54
|
+
.addCString(field.name)
|
|
55
|
+
.addInt32(field.tableID || 0)
|
|
56
|
+
.addInt16(field.attributeNumber || 0)
|
|
57
|
+
.addInt32(field.dataTypeID || 0)
|
|
58
|
+
.addInt16(field.dataTypeSize || 0)
|
|
59
|
+
.addInt32(field.typeModifier || 0)
|
|
60
|
+
.addInt16(field.formatCode || 0)
|
|
61
|
+
})
|
|
62
|
+
return buf.join(true, 'T')
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
parameterDescription: function (dataTypeIDs: number[]) {
|
|
66
|
+
dataTypeIDs = dataTypeIDs || []
|
|
67
|
+
const buf = new BufferList()
|
|
68
|
+
buf.addInt16(dataTypeIDs.length)
|
|
69
|
+
dataTypeIDs.forEach(function (dataTypeID) {
|
|
70
|
+
buf.addInt32(dataTypeID)
|
|
71
|
+
})
|
|
72
|
+
return buf.join(true, 't')
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
dataRow: function (columns: any[]) {
|
|
76
|
+
columns = columns || []
|
|
77
|
+
const buf = new BufferList()
|
|
78
|
+
buf.addInt16(columns.length)
|
|
79
|
+
columns.forEach(function (col) {
|
|
80
|
+
if (col == null) {
|
|
81
|
+
buf.addInt32(-1)
|
|
82
|
+
} else {
|
|
83
|
+
const strBuf = Buffer.from(col, 'utf8')
|
|
84
|
+
buf.addInt32(strBuf.length)
|
|
85
|
+
buf.add(strBuf)
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
return buf.join(true, 'D')
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
error: function (fields: any) {
|
|
92
|
+
return buffers.errorOrNotice(fields).join(true, 'E')
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
notice: function (fields: any) {
|
|
96
|
+
return buffers.errorOrNotice(fields).join(true, 'N')
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
errorOrNotice: function (fields: any) {
|
|
100
|
+
fields = fields || []
|
|
101
|
+
const buf = new BufferList()
|
|
102
|
+
fields.forEach(function (field: any) {
|
|
103
|
+
buf.addChar(field.type)
|
|
104
|
+
buf.addCString(field.value)
|
|
105
|
+
})
|
|
106
|
+
return buf.add(Buffer.from([0])) // terminator
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
parseComplete: function () {
|
|
110
|
+
return new BufferList().join(true, '1')
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
bindComplete: function () {
|
|
114
|
+
return new BufferList().join(true, '2')
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
notification: function (id: number, channel: string, payload: string) {
|
|
118
|
+
return new BufferList().addInt32(id).addCString(channel).addCString(payload).join(true, 'A')
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
emptyQuery: function () {
|
|
122
|
+
return new BufferList().join(true, 'I')
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
portalSuspended: function () {
|
|
126
|
+
return new BufferList().join(true, 's')
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
closeComplete: function () {
|
|
130
|
+
return new BufferList().join(true, '3')
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
copyIn: function (cols: number) {
|
|
134
|
+
const list = new BufferList()
|
|
135
|
+
// text mode
|
|
136
|
+
.addByte(0)
|
|
137
|
+
// column count
|
|
138
|
+
.addInt16(cols)
|
|
139
|
+
for (let i = 0; i < cols; i++) {
|
|
140
|
+
list.addInt16(i)
|
|
141
|
+
}
|
|
142
|
+
return list.join(true, 'G')
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
copyOut: function (cols: number) {
|
|
146
|
+
const list = new BufferList()
|
|
147
|
+
// text mode
|
|
148
|
+
.addByte(0)
|
|
149
|
+
// column count
|
|
150
|
+
.addInt16(cols)
|
|
151
|
+
for (let i = 0; i < cols; i++) {
|
|
152
|
+
list.addInt16(i)
|
|
153
|
+
}
|
|
154
|
+
return list.join(true, 'H')
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
copyData: function (bytes: Buffer) {
|
|
158
|
+
return new BufferList().add(bytes).join(true, 'd')
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
copyDone: function () {
|
|
162
|
+
return new BufferList().join(true, 'c')
|
|
163
|
+
},
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export default buffers
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'chunky'
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# pg-types
|
|
2
|
+
|
|
3
|
+
This is the code that turns all the raw text from postgres into JavaScript types for [node-postgres](https://github.com/brianc/node-postgres.git)
|
|
4
|
+
|
|
5
|
+
## use
|
|
6
|
+
|
|
7
|
+
This module is consumed and exported from the root `pg` object of node-postgres. To access it, do the following:
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
var types = require('pg').types
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Generally what you'll want to do is override how a specific data-type is parsed and turned into a JavaScript type. By default the PostgreSQL backend server returns everything as strings. Every data type corresponds to a unique `OID` within the server, and these `OIDs` are sent back with the query response. So, you need to match a particluar `OID` to a function you'd like to use to take the raw text input and produce a valid JavaScript object as a result. `null` values are never parsed.
|
|
14
|
+
|
|
15
|
+
Let's do something I commonly like to do on projects: return 64-bit integers `(int8)` as JavaScript integers. Because JavaScript doesn't have support for 64-bit integers node-postgres cannot confidently parse `int8` data type results as numbers because if you have a _huge_ number it will overflow and the result you'd get back from node-postgres would not be the result in the datbase. That would be a __very bad thing__ so node-postgres just returns `int8` results as strings and leaves the parsing up to you. Let's say that you know you don't and wont ever have numbers greater than `int4` in your database, but you're tired of recieving results from the `COUNT(*)` function as strings (because that function returns `int8`). You would do this:
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
var types = require('pg').types
|
|
19
|
+
types.setTypeParser(20, function(val) {
|
|
20
|
+
return parseInt(val)
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
__boom__: now you get numbers instead of strings.
|
|
25
|
+
|
|
26
|
+
Just as another example -- not saying this is a good idea -- let's say you want to return all dates from your database as [moment](http://momentjs.com/docs/) objects. Okay, do this:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
var types = require('pg').types
|
|
30
|
+
var moment = require('moment')
|
|
31
|
+
var parseFn = function(val) {
|
|
32
|
+
return val === null ? null : moment(val)
|
|
33
|
+
}
|
|
34
|
+
types.setTypeParser(types.builtins.TIMESTAMPTZ, parseFn)
|
|
35
|
+
types.setTypeParser(types.builtins.TIMESTAMP, parseFn)
|
|
36
|
+
```
|
|
37
|
+
_note: I've never done that with my dates, and I'm not 100% sure moment can parse all the date strings returned from postgres. It's just an example!_
|
|
38
|
+
|
|
39
|
+
If you're thinking "gee, this seems pretty handy, but how can I get a list of all the OIDs in the database and what they correspond to?!?!?!" worry not:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
$ psql -c "select typname, oid, typarray from pg_type order by oid"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If you want to find out the OID of a specific type:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
$ psql -c "select typname, oid, typarray from pg_type where typname = 'daterange' order by oid"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
:smile:
|
|
52
|
+
|
|
53
|
+
## license
|
|
54
|
+
|
|
55
|
+
The MIT License (MIT)
|
|
56
|
+
|
|
57
|
+
Copyright (c) 2014 Brian M. Carlson
|
|
58
|
+
|
|
59
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
60
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
61
|
+
in the Software without restriction, including without limitation the rights
|
|
62
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
63
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
64
|
+
furnished to do so, subject to the following conditions:
|
|
65
|
+
|
|
66
|
+
The above copyright notice and this permission notice shall be included in
|
|
67
|
+
all copies or substantial portions of the Software.
|
|
68
|
+
|
|
69
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
71
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
72
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
73
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
74
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
75
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export enum TypeId {
|
|
2
|
+
BOOL = 16,
|
|
3
|
+
BYTEA = 17,
|
|
4
|
+
CHAR = 18,
|
|
5
|
+
INT8 = 20,
|
|
6
|
+
INT2 = 21,
|
|
7
|
+
INT4 = 23,
|
|
8
|
+
REGPROC = 24,
|
|
9
|
+
TEXT = 25,
|
|
10
|
+
OID = 26,
|
|
11
|
+
TID = 27,
|
|
12
|
+
XID = 28,
|
|
13
|
+
CID = 29,
|
|
14
|
+
JSON = 114,
|
|
15
|
+
XML = 142,
|
|
16
|
+
PG_NODE_TREE = 194,
|
|
17
|
+
SMGR = 210,
|
|
18
|
+
PATH = 602,
|
|
19
|
+
POLYGON = 604,
|
|
20
|
+
CIDR = 650,
|
|
21
|
+
FLOAT4 = 700,
|
|
22
|
+
FLOAT8 = 701,
|
|
23
|
+
ABSTIME = 702,
|
|
24
|
+
RELTIME = 703,
|
|
25
|
+
TINTERVAL = 704,
|
|
26
|
+
CIRCLE = 718,
|
|
27
|
+
MACADDR8 = 774,
|
|
28
|
+
MONEY = 790,
|
|
29
|
+
MACADDR = 829,
|
|
30
|
+
INET = 869,
|
|
31
|
+
ACLITEM = 1033,
|
|
32
|
+
BPCHAR = 1042,
|
|
33
|
+
VARCHAR = 1043,
|
|
34
|
+
DATE = 1082,
|
|
35
|
+
TIME = 1083,
|
|
36
|
+
TIMESTAMP = 1114,
|
|
37
|
+
TIMESTAMPTZ = 1184,
|
|
38
|
+
INTERVAL = 1186,
|
|
39
|
+
TIMETZ = 1266,
|
|
40
|
+
BIT = 1560,
|
|
41
|
+
VARBIT = 1562,
|
|
42
|
+
NUMERIC = 1700,
|
|
43
|
+
REFCURSOR = 1790,
|
|
44
|
+
REGPROCEDURE = 2202,
|
|
45
|
+
REGOPER = 2203,
|
|
46
|
+
REGOPERATOR = 2204,
|
|
47
|
+
REGCLASS = 2205,
|
|
48
|
+
REGTYPE = 2206,
|
|
49
|
+
UUID = 2950,
|
|
50
|
+
TXID_SNAPSHOT = 2970,
|
|
51
|
+
PG_LSN = 3220,
|
|
52
|
+
PG_NDISTINCT = 3361,
|
|
53
|
+
PG_DEPENDENCIES = 3402,
|
|
54
|
+
TSVECTOR = 3614,
|
|
55
|
+
TSQUERY = 3615,
|
|
56
|
+
GTSVECTOR = 3642,
|
|
57
|
+
REGCONFIG = 3734,
|
|
58
|
+
REGDICTIONARY = 3769,
|
|
59
|
+
JSONB = 3802,
|
|
60
|
+
REGNAMESPACE = 4089,
|
|
61
|
+
REGROLE = 4096
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type builtinsTypes =
|
|
65
|
+
'BOOL' |
|
|
66
|
+
'BYTEA' |
|
|
67
|
+
'CHAR' |
|
|
68
|
+
'INT8' |
|
|
69
|
+
'INT2' |
|
|
70
|
+
'INT4' |
|
|
71
|
+
'REGPROC' |
|
|
72
|
+
'TEXT' |
|
|
73
|
+
'OID' |
|
|
74
|
+
'TID' |
|
|
75
|
+
'XID' |
|
|
76
|
+
'CID' |
|
|
77
|
+
'JSON' |
|
|
78
|
+
'XML' |
|
|
79
|
+
'PG_NODE_TREE' |
|
|
80
|
+
'SMGR' |
|
|
81
|
+
'PATH' |
|
|
82
|
+
'POLYGON' |
|
|
83
|
+
'CIDR' |
|
|
84
|
+
'FLOAT4' |
|
|
85
|
+
'FLOAT8' |
|
|
86
|
+
'ABSTIME' |
|
|
87
|
+
'RELTIME' |
|
|
88
|
+
'TINTERVAL' |
|
|
89
|
+
'CIRCLE' |
|
|
90
|
+
'MACADDR8' |
|
|
91
|
+
'MONEY' |
|
|
92
|
+
'MACADDR' |
|
|
93
|
+
'INET' |
|
|
94
|
+
'ACLITEM' |
|
|
95
|
+
'BPCHAR' |
|
|
96
|
+
'VARCHAR' |
|
|
97
|
+
'DATE' |
|
|
98
|
+
'TIME' |
|
|
99
|
+
'TIMESTAMP' |
|
|
100
|
+
'TIMESTAMPTZ' |
|
|
101
|
+
'INTERVAL' |
|
|
102
|
+
'TIMETZ' |
|
|
103
|
+
'BIT' |
|
|
104
|
+
'VARBIT' |
|
|
105
|
+
'NUMERIC' |
|
|
106
|
+
'REFCURSOR' |
|
|
107
|
+
'REGPROCEDURE' |
|
|
108
|
+
'REGOPER' |
|
|
109
|
+
'REGOPERATOR' |
|
|
110
|
+
'REGCLASS' |
|
|
111
|
+
'REGTYPE' |
|
|
112
|
+
'UUID' |
|
|
113
|
+
'TXID_SNAPSHOT' |
|
|
114
|
+
'PG_LSN' |
|
|
115
|
+
'PG_NDISTINCT' |
|
|
116
|
+
'PG_DEPENDENCIES' |
|
|
117
|
+
'TSVECTOR' |
|
|
118
|
+
'TSQUERY' |
|
|
119
|
+
'GTSVECTOR' |
|
|
120
|
+
'REGCONFIG' |
|
|
121
|
+
'REGDICTIONARY' |
|
|
122
|
+
'JSONB' |
|
|
123
|
+
'REGNAMESPACE' |
|
|
124
|
+
'REGROLE';
|
|
125
|
+
|
|
126
|
+
export type TypesBuiltins = {[key in builtinsTypes]: TypeId};
|
|
127
|
+
|
|
128
|
+
export type TypeFormat = 'text' | 'binary';
|
|
129
|
+
|
|
130
|
+
export const builtins: TypesBuiltins;
|
|
131
|
+
|
|
132
|
+
export function setTypeParser (id: TypeId, parseFn: ((value: string) => any)): void;
|
|
133
|
+
export function setTypeParser (id: TypeId, format: TypeFormat, parseFn: (value: string) => any): void;
|
|
134
|
+
|
|
135
|
+
export const getTypeParser: (id: TypeId, format?: TypeFormat) => any
|
|
136
|
+
|
|
137
|
+
export const arrayParser: (source: string, transform: (entry: any) => any) => any[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var textParsers = require('./lib/textParsers');
|
|
2
|
+
var binaryParsers = require('./lib/binaryParsers');
|
|
3
|
+
var arrayParser = require('./lib/arrayParser');
|
|
4
|
+
var builtinTypes = require('./lib/builtins');
|
|
5
|
+
|
|
6
|
+
exports.getTypeParser = getTypeParser;
|
|
7
|
+
exports.setTypeParser = setTypeParser;
|
|
8
|
+
exports.arrayParser = arrayParser;
|
|
9
|
+
exports.builtins = builtinTypes;
|
|
10
|
+
|
|
11
|
+
var typeParsers = {
|
|
12
|
+
text: {},
|
|
13
|
+
binary: {}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//the empty parse function
|
|
17
|
+
function noParse (val) {
|
|
18
|
+
return String(val);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//returns a function used to convert a specific type (specified by
|
|
22
|
+
//oid) into a result javascript type
|
|
23
|
+
//note: the oid can be obtained via the following sql query:
|
|
24
|
+
//SELECT oid FROM pg_type WHERE typname = 'TYPE_NAME_HERE';
|
|
25
|
+
function getTypeParser (oid, format) {
|
|
26
|
+
format = format || 'text';
|
|
27
|
+
if (!typeParsers[format]) {
|
|
28
|
+
return noParse;
|
|
29
|
+
}
|
|
30
|
+
return typeParsers[format][oid] || noParse;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function setTypeParser (oid, format, parseFn) {
|
|
34
|
+
if(typeof format == 'function') {
|
|
35
|
+
parseFn = format;
|
|
36
|
+
format = 'text';
|
|
37
|
+
}
|
|
38
|
+
typeParsers[format][oid] = parseFn;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
textParsers.init(function(oid, converter) {
|
|
42
|
+
typeParsers.text[oid] = converter;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
binaryParsers.init(function(oid, converter) {
|
|
46
|
+
typeParsers.binary[oid] = converter;
|
|
47
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as types from '.';
|
|
2
|
+
import { expectType } from 'tsd';
|
|
3
|
+
|
|
4
|
+
// builtins
|
|
5
|
+
expectType<types.TypesBuiltins>(types.builtins);
|
|
6
|
+
|
|
7
|
+
// getTypeParser
|
|
8
|
+
const noParse = types.getTypeParser(types.builtins.NUMERIC, 'text');
|
|
9
|
+
const numericParser = types.getTypeParser(types.builtins.NUMERIC, 'binary');
|
|
10
|
+
expectType<string>(noParse('noParse'));
|
|
11
|
+
expectType<number>(numericParser([200, 1, 0, 15]));
|
|
12
|
+
|
|
13
|
+
// getArrayParser
|
|
14
|
+
const value = types.arrayParser('{1,2,3}', (num) => parseInt(num));
|
|
15
|
+
expectType<number[]>(value);
|
|
16
|
+
|
|
17
|
+
//setTypeParser
|
|
18
|
+
types.setTypeParser(types.builtins.INT8, parseInt);
|
|
19
|
+
types.setTypeParser(types.builtins.FLOAT8, parseFloat);
|
|
20
|
+
types.setTypeParser(types.builtins.FLOAT8, 'binary', (data) => data[0]);
|
|
21
|
+
types.setTypeParser(types.builtins.FLOAT8, 'text', parseFloat);
|