Learn how to synchronize database schema information into your repository with oxyc sync
Oxygen sync
The oxyc sync command collects schema information from your databases and writes it into your repository, under .databases/, for use by agents and other Oxygen features. The files hold table structures, column names and types, and the DDL, which help agents understand your data model.Oxygen introspects the databases on the server, with the connection settings and secrets your deployed workspace has, and oxyc writes the files into your local checkout. No warehouse credentials are needed on your machine, only an oxyc login. Because the server reads the deployed config.yml, push a change to a database’s configuration before you sync it.
oxy sync has moved to oxyc sync; the old command was removed.
Install oxyc with npm i -g @oxy-hq/cli, sign in with oxyc login, and run the command from the root of your checkout.
Arguments
DATABASE_NAME (optional): The name of a specific database to sync, as defined in your config.yml file. If omitted, every database is synced, one at a time. --database <name> is the same.
Options
--workspace <id>: The workspace whose deployed configuration names the databases.
-d, --datasets <DATASET>: Sync only this dataset (schema) within the named database. Repeat it for more than one.
--tables <SCHEMA.TABLE>: Sync only this table within the named database. Repeat it for more than one.
-o, --overwrite: Overwrite existing files. By default, existing files are skipped.
--dry-run: Print what would be written, and write nothing.
--dir <path>: The checkout to write into. The default is the current directory.
--json: Print a machine-readable report of each database and each file.
Usage Examples
Sync All Databases
oxyc sync --workspace <workspace-id>
This syncs every database defined in your deployed config.yml. Existing files are skipped. If one database fails, the others still sync, and the command exits non-zero.
This syncs only the “customers” and “orders” datasets from the “my_database” database.
Overwrite Existing Files
oxyc sync -o --workspace <workspace-id>
With -o, existing files are replaced, and a stale model file in a dataset’s models/ directory is removed. Files elsewhere under .databases/ are left alone.
Output and Warnings
Skipped files: When a file already exists and overwrite mode is off (the default), it is listed as skipped.
Overwritten and deleted files: With -o, the files replaced and the stale models removed are listed.
Skipped databases: A database whose type cannot be synced (for example airhouse_managed) is skipped with a warning.
Exit codes: 0 success, 4 not signed in or not a workspace admin, 5 no such database or workspace, 6 the database cannot connect as configured, 7 a retryable failure (the warehouse failed, or the sync took too long: narrow it with -d).
Understanding the Synced Data
When you run oxyc sync, Oxygen will:
Connect to each configured database
Extract schema information, including tables, columns and data types
Generate semantic models representing this data
Write these models as files under .databases/ in your checkout:
.databases/<database>/<dataset>.sql: the dataset’s DDL, where the database exposes it
.databases/<database>/<dataset>/models/<table>.schema.yml: one file per table
These semantic files are then used by agents when you ask questions about your data, enabling them to generate accurate SQL queries and understand your data structure. Commit them like any other workspace file.
Configuration
Before using the sync command, ensure your databases are properly configured in your config.yml file, and that the configuration is deployed. For example:
Reference credentials through the workspace’s secrets (password_var, key_json_var): the server resolves them when it syncs. A connection that reads a file from the workspace (a key_path, a local DuckDB file) cannot be synced by the cloud.See the configuration documentation for more details on setting up your database connections.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Oxy","colors":{"primary":"#030712","light":"#ffffff","dark":"#000000"},"logo":{"light":"https://mintcdn.com/oxy-internal/xX7inOJIzCdvQI-Y/images/Lightmode.svg?fit=max\u0026auto=format\u0026n=xX7inOJIzCdvQI-Y\u0026q=85\u0026s=7aa8885eb1b95d168e9c1743b54dbe79","dark":"https://mintcdn.com/oxy-internal/xX7inOJIzCdvQI-Y/images/Darkmode.svg?fit=max\u0026auto=format\u0026n=xX7inOJIzCdvQI-Y\u0026q=85\u0026s=f737dc2472660dc00446925d90e40b28","href":"https://www.oxygen-hq.com/"},"favicon":"https://mintcdn.com/oxy-internal/XfLj55XAulf1G32y/favicon.svg?fit=max\u0026auto=format\u0026n=XfLj55XAulf1G32y\u0026q=85\u0026s=7889ada76b28d67381343cfcbf5806ad","background":{"decoration":"windows","color":{"light":"#f9fafb","dark":"#030712"}},"navbar":{"primary":{"type":"github","href":"https://github.com/oxy-hq/oxy"}},"footer":{"socials":{"x":"https://x.com/oxy_ai","github":"https://github.com/oxy-hq","linkedin":"https://www.linkedin.com/company/oxy-hq"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"oxy-internal","hasAudioNarration":false,"actualSubdomain":"oxy-internal","customDomains":["oxy.tech"],"gitSource":{"type":"github","owner":"oxy-hq","repo":"oxygen-content","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0cc073dc3d787e20c1e21f","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Docs","count":102},{"language":"default","tag":"Changelog","count":71},{"language":"default","tag":"Recent Updates","count":71},{"language":"default","tag":"Matrix · World Model","count":24},{"language":"default","tag":"Integrations","count":20},{"language":"default","tag":"Airhouse","count":19},{"language":"default","tag":"Gateway · Software Factory","count":15},{"language":"default","tag":"Databases","count":13},{"language":"default","tag":"Manage","count":10},{"language":"default","tag":"Physics Layer","count":9}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guide/build/connect-data/sync-schema","slug":"/guide/build/connect-data/sync-schema","pageMetadata":{"title":"Database Synchronization","sidebarTitle":"Database Sync","description":"Learn how to synchronize database schema information into your repository with oxyc sync","href":"/guide/build/connect-data/sync-schema"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to synchronize database schema information into your repository with oxyc sync\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[`\n`,_jsx(Heading,{level:`1`,id:`oxygen-sync`,children:`Oxygen sync`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`oxyc sync`}),` command collects schema information from your databases and writes it into your repository, under `,_jsx(_components.code,{children:`.databases/`}),`, for use by agents and other Oxygen features. The files hold table structures, column names and types, and the DDL, which help agents understand your data model.`]}),`\n`,_jsxs(_components.p,{children:[`Oxygen introspects the databases on the server, with the connection settings and secrets your `,_jsx(_components.strong,{children:`deployed`}),` workspace has, and `,_jsx(_components.code,{children:`oxyc`}),` writes the files into your local checkout. No warehouse credentials are needed on your machine, only an `,_jsx(_components.code,{children:`oxyc`}),` login. Because the server reads the deployed `,_jsx(_components.code,{children:`config.yml`}),`, push a change to a database’s configuration before you sync it.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`oxy sync`}),` has moved to `,_jsx(_components.code,{children:`oxyc sync`}),`; the old command was removed.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`command-overview`,children:`Command Overview`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxyc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [DATABASE_NAME] --workspace `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`workspace-id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [OPTIONS]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Install `,_jsx(_components.code,{children:`oxyc`}),` with `,_jsx(_components.code,{children:`npm i -g @oxy-hq/cli`}),`, sign in with `,_jsx(_components.code,{children:`oxyc login`}),`, and run the command from the root of your checkout.`]}),`\n`,_jsx(Heading,{level:`3`,id:`arguments`,children:`Arguments`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`DATABASE_NAME`}),` (optional): The name of a specific database to sync, as defined in your `,_jsx(_components.code,{children:`config.yml`}),` file. If omitted, every database is synced, one at a time. `,_jsx(_components.code,{children:`--database \u003cname>`}),` is the same.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`options`,children:`Options`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--workspace \u003cid>`}),`: The workspace whose deployed configuration names the databases.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`-d, --datasets \u003cDATASET>`}),`: Sync only this dataset (schema) within the named database. Repeat it for more than one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--tables \u003cSCHEMA.TABLE>`}),`: Sync only this table within the named database. Repeat it for more than one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`-o, --overwrite`}),`: Overwrite existing files. By default, existing files are skipped.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--dry-run`}),`: Print what would be written, and write nothing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--dir \u003cpath>`}),`: The checkout to write into. The default is the current directory.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--json`}),`: Print a machine-readable report of each database and each file.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage-examples`,children:`Usage Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`sync-all-databases`,children:`Sync All Databases`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxyc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --workspace`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`workspace-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This syncs every database defined in your deployed `,_jsx(_components.code,{children:`config.yml`}),`. Existing files are skipped. If one database fails, the others still sync, and the command exits non-zero.`]}),`\n`,_jsx(Heading,{level:`3`,id:`sync-a-specific-database`,children:`Sync a Specific Database`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxyc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my_database`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --workspace`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`workspace-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sync-specific-datasets`,children:`Sync Specific Datasets`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxyc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my_database`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` customers`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` orders`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --workspace`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`workspace-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This syncs only the “customers” and “orders” datasets from the “my_database” database.`}),`\n`,_jsx(Heading,{level:`3`,id:`overwrite-existing-files`,children:`Overwrite Existing Files`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`oxyc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -o`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --workspace`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`workspace-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`With `,_jsx(_components.code,{children:`-o`}),`, existing files are replaced, and a stale model file in a dataset’s `,_jsx(_components.code,{children:`models/`}),` directory is removed. Files elsewhere under `,_jsx(_components.code,{children:`.databases/`}),` are left alone.`]}),`\n`,_jsx(Heading,{level:`2`,id:`output-and-warnings`,children:`Output and Warnings`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Skipped files`}),`: When a file already exists and overwrite mode is off (the default), it is listed as skipped.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overwritten and deleted files`}),`: With `,_jsx(_components.code,{children:`-o`}),`, the files replaced and the stale models removed are listed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Skipped databases`}),`: A database whose type cannot be synced (for example `,_jsx(_components.code,{children:`airhouse_managed`}),`) is skipped with a warning.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Exit codes: `,_jsx(_components.code,{children:`0`}),` success, `,_jsx(_components.code,{children:`4`}),` not signed in or not a workspace admin, `,_jsx(_components.code,{children:`5`}),` no such database or workspace, `,_jsx(_components.code,{children:`6`}),` the database cannot connect as configured, `,_jsx(_components.code,{children:`7`}),` a retryable failure (the warehouse failed, or the sync took too long: narrow it with `,_jsx(_components.code,{children:`-d`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`understanding-the-synced-data`,children:`Understanding the Synced Data`}),`\n`,_jsxs(_components.p,{children:[`When you run `,_jsx(_components.code,{children:`oxyc sync`}),`, Oxygen will:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Connect to each configured database`}),`\n`,_jsx(_components.li,{children:`Extract schema information, including tables, columns and data types`}),`\n`,_jsx(_components.li,{children:`Generate semantic models representing this data`}),`\n`,_jsxs(_components.li,{children:[`Write these models as files under `,_jsx(_components.code,{children:`.databases/`}),` in your checkout:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.databases/\u003cdatabase>/\u003cdataset>.sql`}),`: the dataset’s DDL, where the database exposes it`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`.databases/\u003cdatabase>/\u003cdataset>/models/\u003ctable>.schema.yml`}),`: one file per table`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`These semantic files are then used by agents when you ask questions about your data, enabling them to generate accurate SQL queries and understand your data structure. Commit them like any other workspace file.`}),`\n`,_jsx(Heading,{level:`2`,id:`configuration`,children:`Configuration`}),`\n`,_jsxs(_components.p,{children:[`Before using the `,_jsx(_components.code,{children:`sync`}),` command, ensure your databases are properly configured in your `,_jsx(_components.code,{children:`config.yml`}),` file, and that the configuration is deployed. For example:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`databases`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`my_postgres_db`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`postgres`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` host`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`localhost`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` port`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5432`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`postgres`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` password_var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POSTGRES_PASSWORD`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` database`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`mydb`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`my_bigquery_db`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`bigquery`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` key_json_var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`BIGQUERY_KEY_JSON`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` datasets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` analytics`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"*\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` marketing`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"users\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"campaigns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Reference credentials through the workspace’s secrets (`,_jsx(_components.code,{children:`password_var`}),`, `,_jsx(_components.code,{children:`key_json_var`}),`): the server resolves them when it syncs. A connection that reads a file from the workspace (a `,_jsx(_components.code,{children:`key_path`}),`, a local DuckDB file) cannot be synced by the cloud.`]}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/guide/reference/yaml/config`,children:`configuration documentation`}),` for more details on setting up your database connections.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Database Synchronization","sidebarTitle":"Database Sync","description":"Learn how to synchronize database schema information into your repository with oxyc sync","href":"/guide/build/connect-data/sync-schema"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Oxygen sync","slug":"oxygen-sync","depth":1,"children":[]},{"title":"Command Overview","slug":"command-overview","depth":2,"children":[{"title":"Arguments","slug":"arguments","depth":3,"children":[]},{"title":"Options","slug":"options","depth":3,"children":[]}]},{"title":"Usage Examples","slug":"usage-examples","depth":2,"children":[{"title":"Sync All Databases","slug":"sync-all-databases","depth":3,"children":[]},{"title":"Sync a Specific Database","slug":"sync-a-specific-database","depth":3,"children":[]},{"title":"Sync Specific Datasets","slug":"sync-specific-datasets","depth":3,"children":[]},{"title":"Overwrite Existing Files","slug":"overwrite-existing-files","depth":3,"children":[]}]},{"title":"Output and Warnings","slug":"output-and-warnings","depth":2,"children":[]},{"title":"Understanding the Synced Data","slug":"understanding-the-synced-data","depth":2,"children":[]},{"title":"Configuration","slug":"configuration","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"oxy-internal","siteName":"Oxy","title":"Database Synchronization - Oxy","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T00:15:00.795Z","originalFileLocation":"guide/build/connect-data/sync-schema.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to synchronize database schema information into your repository with oxyc sync\">\u003cmeta data-mint-head name=\"application-name\" content=\"Oxy\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Database Synchronization - Oxy\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to synchronize database schema information into your repository with oxyc sync\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Oxy\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://oxy.tech/docs/guide/build/connect-data/sync-schema\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://oxy-internal.mintlify.site/docs/_mintlify/api/og/v2?division=Databases\u0026amp;title=Database+Synchronization\u0026amp;description=Learn+how+to+synchronize+database+schema+information+into+your+repository+with+oxyc+sync\u0026amp;theme=d892acf77ac0c377494023a7\u0026amp;signature=0c18617187719bedb57feeb21c5486723474d2ae3e56716699cdde4f7ae7019d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Database Synchronization - Oxy\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to synchronize database schema information into your repository with oxyc sync\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://oxy-internal.mintlify.site/docs/_mintlify/api/og/v2?division=Databases\u0026amp;title=Database+Synchronization\u0026amp;description=Learn+how+to+synchronize+database+schema+information+into+your+repository+with+oxyc+sync\u0026amp;theme=d892acf77ac0c377494023a7\u0026amp;signature=0c18617187719bedb57feeb21c5486723474d2ae3e56716699cdde4f7ae7019d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/oxy-internal/KeAO_qxRpF-2s_ns/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Oxy\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#030712\">\u003clink data-mint-head rel=\"canonical\" href=\"https://oxy.tech/docs/guide/build/connect-data/sync-schema\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guide/build/connect-data/sync-schema.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://oxy.tech/#organization\",\"name\":\"Oxy\",\"url\":\"https://oxy.tech\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/oxy-internal/xX7inOJIzCdvQI-Y/images/Lightmode.svg?fit=max\u0026auto=format\u0026n=xX7inOJIzCdvQI-Y\u0026q=85\u0026s=7aa8885eb1b95d168e9c1743b54dbe79\"}},{\"@type\":\"WebSite\",\"@id\":\"https://oxy.tech/docs#website\",\"name\":\"Oxy\",\"url\":\"https://oxy.tech/docs\",\"publisher\":{\"@id\":\"https://oxy.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema#webpage\",\"url\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema\",\"name\":\"Database Synchronization\",\"description\":\"Learn how to synchronize database schema information into your repository with oxyc sync\",\"dateModified\":\"2026-11-27T00:15:00.795Z\",\"isPartOf\":{\"@id\":\"https://oxy.tech/docs#website\"},\"breadcrumb\":{\"@id\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://oxy.tech/docs/guide/build/connect-data\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Databases\",\"item\":\"https://oxy.tech/docs/guide/build/connect-data\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Database Synchronization\",\"item\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema#article\",\"headline\":\"Database Synchronization\",\"name\":\"Database Synchronization\",\"description\":\"Learn how to synchronize database schema information into your repository with oxyc sync\",\"url\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema\",\"mainEntityOfPage\":{\"@id\":\"https://oxy.tech/docs/guide/build/connect-data/sync-schema#webpage\"},\"dateModified\":\"2026-11-27T00:15:00.795Z\",\"publisher\":{\"@id\":\"https://oxy.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://oxy.tech/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Oxy\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Oxy\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/guide/build/connect-data/sync-schema.md","siteName":"Oxy","nav":{"global":null,"tabs":[{"tab":"Docs","groups":[{"group":"Get started","pages":[{"title":"Welcome to Oxygen Nexus","sidebarTitle":"Overview","href":"/guide/start"},{"title":"Architecture","href":"/guide/start/architecture"},{"title":"Quickstart","href":"/guide/start/quickstart"},{"title":"Install the Oxygen CLI","sidebarTitle":"Install the CLI","href":"/guide/start/install-cli"},{"title":"Set up your project","href":"/guide/start/first-project"},{"title":"Global config","href":"/guide/reference/yaml/config"}]},{"group":"Pylon · Data Infrastructure","pages":[{"title":"Data Infrastructure","sidebarTitle":"Overview","href":"/guide/build/data-infrastructure/index"},{"title":"Airhouse","href":"/guide/build/data-infrastructure/airhouse"},{"group":"Airway","pages":[{"title":"Airway","sidebarTitle":"Overview","href":"/guide/build/data-infrastructure/airway/index"},{"title":"Pipeline reference","href":"/guide/build/data-infrastructure/airway/pipelines"}]},{"title":"Airform","href":"/guide/build/data-infrastructure/airform"},{"title":"Airconductor","sidebarTitle":"Airconductor","href":"/guide/build/data-infrastructure/airconductor"}]},{"group":"Matrix · World Model","pages":[{"title":"World Model","sidebarTitle":"Overview","href":"/guide/build/world-model/index"},{"group":"Physics Layer","pages":[{"group":"Semantic Model","pages":[{"title":"Overview","href":"/guide/build/semantic-model/simple-model"},{"title":"Views","href":"/guide/build/semantic-model/views"},{"title":"Entities","href":"/guide/build/semantic-model/entities"},{"title":"Dimensions","href":"/guide/build/semantic-model/dimensions"},{"title":"Measures","href":"/guide/build/semantic-model/measures"},{"title":"Topics","href":"/guide/build/semantic-model/topics"},{"title":"Using the Semantic Model","href":"/guide/build/semantic-model/use-in-agents"},{"title":"Modeling","href":"/guide/build/semantic-model/modeling"}]},{"title":"Metric Tree","href":"/guide/build/world-model/metric-tree"}]},{"group":"Control Layer","pages":[{"title":"Controls","href":"/guide/build/world-model/controls"},{"title":"Opportunity Sizing","href":"/guide/build/world-model/opportunity-sizing"},{"title":"Evaluation","href":"/guide/build/world-model/evaluation"}]},{"group":"Calibration Layer","pages":[{"title":"Calibration","href":"/guide/build/world-model/calibration"}]},{"group":"Experiments","pages":[{"title":"Experiments","href":"/guide/build/world-model/experiments/index"},{"title":"Designing an experiment","href":"/guide/build/world-model/experiments/design"},{"title":"Pricing and power","href":"/guide/build/world-model/experiments/pricing"},{"title":"Running an experiment","href":"/guide/build/world-model/experiments/running"},{"title":"Hours, days, weeks and months","href":"/guide/build/world-model/experiments/grain"},{"title":"Reading the report","href":"/guide/build/world-model/experiments/report"},{"title":"How the statistics work","href":"/guide/build/world-model/experiments/statistics"},{"title":"Past data and few-unit designs","href":"/guide/build/world-model/experiments/past-data-and-few-units"},{"title":"Worked examples","href":"/guide/build/world-model/experiments/examples"}]},{"title":"Compared to Palantir","href":"/guide/build/world-model/compared-to-palantir"}]},{"group":"Gateway · Software Factory","pages":[{"title":"Gateway","sidebarTitle":"Overview","href":"/guide/build/gateway/index"},{"group":"Custom Apps","pages":[{"title":"Custom Apps","sidebarTitle":"Overview","href":"/guide/build/custom-apps/index"},{"title":"SDK","sidebarTitle":"Build with the SDK","href":"/guide/build/sdk/index"},{"title":"Hooks \u0026 components","href":"/guide/build/sdk/hooks"},{"title":"World Model Interface","sidebarTitle":"World Model","href":"/guide/build/sdk/world-model"},{"title":"Oxygen Functions","href":"/guide/build/sdk/functions"}]},{"group":"Agents","pages":[{"title":"Agents","sidebarTitle":"Overview","href":"/guide/build/agents/index"},{"title":"How the pipeline works","sidebarTitle":"The pipeline","href":"/guide/build/agents/pipeline"},{"title":"Context \u0026 affordances","sidebarTitle":"Context \u0026 affordances","href":"/guide/build/agents/provide-context"},{"title":"Test your agent","href":"/guide/build/test-evaluate/index"},{"title":"Testing reference","href":"/guide/build/test-evaluate/testing"}]},{"group":"Automations","pages":[{"title":"Automations","sidebarTitle":"Overview","href":"/guide/build/automations/index"},{"title":"Task types","href":"/guide/build/automations/task-types"},{"title":"Loops","href":"/guide/build/automations/loops"},{"title":"Variables","href":"/guide/build/automations/variables"}]}]},{"group":"Integrations","pages":[{"group":"Databases","pages":[{"title":"Integrations","href":"/guide/build/connect-data/index"},{"title":"BigQuery","href":"/guide/build/connect-data/bigquery"},{"title":"Snowflake","href":"/guide/build/connect-data/snowflake"},{"title":"Postgres","href":"/guide/build/connect-data/postgres"},{"title":"Redshift","href":"/guide/build/connect-data/redshift"},{"title":"ClickHouse","href":"/guide/build/connect-data/clickhouse"},{"title":"DuckDB","href":"/guide/build/connect-data/duckdb"},{"title":"MotherDuck","href":"/guide/build/connect-data/motherduck"},{"title":"MySQL","href":"/guide/build/connect-data/mysql"},{"title":"Looker","href":"/guide/build/connect-data/looker"},{"title":"Domo","description":null,"href":"/guide/build/connect-data/domo"},{"title":"Database Synchronization","sidebarTitle":"Database Sync","href":"/guide/build/connect-data/sync-schema"},{"title":"Large query results","description":"How Oxygen bounds large query results so a runaway scan never crashes the server","href":"/guide/build/connect-data/query-limits"}]},{"group":"Models","pages":[{"title":"OpenAI","href":"/guide/build/connect-models/openai"},{"title":"Claude","href":"/guide/build/connect-models/anthropic"},{"title":"Gemini","href":"/guide/build/connect-models/gemini"},{"title":"LLM gateways \u0026 proxies","href":"/guide/build/connect-models/gateways"}]},{"group":"External Systems","pages":[{"title":"MCP Server","href":"/guide/build/embed-extend/mcp"},{"title":"Slack","href":"/guide/build/embed-extend/slack"},{"title":"Local development with oxyc proxy","href":"/guide/build/embed-extend/oxy-proxy"}]}]},{"group":"Edge fleet","pages":[{"title":"Edge fleet","href":"/guide/edge/index"},{"title":"Install an edge box","href":"/guide/edge/install"},{"title":"Edge runbook","href":"/guide/edge/runbook"}]},{"group":"Manage","pages":[{"title":"Manage your workspace","href":"/guide/manage/index"},{"title":"Teams \u0026 roles","href":"/guide/manage/teams"},{"title":"Crew \u0026 kiosks","sidebarTitle":"Crew \u0026 kiosks","href":"/guide/manage/crew"},{"title":"Permissions","href":"/guide/manage/permissions"},{"title":"Secrets","href":"/guide/manage/secrets"},{"title":null,"href":"/guide/manage/api-keys"},{"title":"Billing \u0026 plans","href":"/guide/manage/billing"},{"title":"Usage \u0026 limits","href":"/guide/manage/usage-limits"},{"title":"High availability","sidebarTitle":"High availability","href":"/guide/manage/high-availability"},{"title":"Support \u0026 SSO","href":"/guide/manage/support"}]},{"group":"Workspaces","pages":[{"title":"Workspaces","sidebarTitle":"Workspaces","href":"/guide/manage/workspaces/index"},{"title":"GitHub App Setup","sidebarTitle":"GitHub App Setup","href":"/guide/manage/workspaces/github-integration"},{"title":"Branches and editing","href":"/guide/manage/workspaces/branches"}]},{"group":"Authentication","pages":[{"title":"Authentication","sidebarTitle":"Overview","href":"/guide/manage/authentication/index"},{"title":"Magic link","sidebarTitle":"Magic link","href":"/guide/manage/authentication/magic-link"},{"title":"Google OAuth","sidebarTitle":"Google OAuth","href":"/guide/manage/authentication/google"},{"title":"Okta SSO","href":"/guide/manage/authentication/okta"}]},{"group":"Observability","pages":[{"title":"Observability","sidebarTitle":"Observability","href":"/guide/manage/observability/index"},{"title":"Exploring traces","sidebarTitle":"Exploring traces","href":"/guide/manage/observability/traces"}]},{"group":"Enterprise","pages":[{"title":"What is Enterprise?","href":"/guide/manage/enterprise/index"}]},{"group":"Reference","pages":[{"title":"Reference","href":"/guide/reference/index"}]},{"group":"REST API","pages":[{"title":"REST API","href":"/guide/reference/rest-api/index"}]},{"group":"Resources","pages":[{"title":"Resources","href":"/guide/resources/index"},{"title":"Changelog","href":"/guide/resources/changelog"},{"title":"Community","href":"/guide/resources/community"},{"title":"Showcase","href":"/guide/resources/showcase"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/guide/resources/troubleshooting/index"},{"title":"Debugging \u0026 Logs","sidebarTitle":"Debugging","href":"/guide/resources/troubleshooting/debugging"}]}]},{"tab":"Airhouse","pages":[{"title":"Airhouse","href":"/airhouse"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026-11-26"}]}]},"basePath":"","title":"Database Synchronization - Oxy","deploymentId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","buildId":"dpl_BnrwKdxWnqTCMaKmLBoTuzTNCBXD","dynamics":[],"chunks":[]}