You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: This comment was automatically generated with AI. It can give some useful hints as to where to look for, but sometimes it can also give very inaccurate answers so takes this with a pinch of salt :).
To allow schema updates in remote server edition, follow these steps:
Update DTO: Modify UpdateRemoteServerInput in src/modules/remote-server/dto/update-remote-server.input.ts to include the schema field.
SQL Query Construction: Ensure build-update-remote-server-raw-query in src/modules/remote-server/utils/build-update-remote-server-raw-query.utils.ts constructs the correct SQL query for schema updates.
exportfunctionbuildUpdateRemoteServerRawQuery(updateRemoteServerInput: UpdateRemoteServerInput): string{const{ schema, ...rest}=updateRemoteServerInput;letquery='UPDATE remote_servers SET ';// existing query constructionif(schema){query+=`schema = '${schema}', `;}query=query.slice(0,-2);// remove trailing commaquery+=' WHERE id = $1';returnquery;}
Handle Table Creation: Update createAvailableTables method in src/modules/distant-table/distant-table.service.ts to handle the creation of available tables from the updated schema.
asynccreateAvailableTables(schema: string): Promise<void>{// logic to create tables based on the schema}
No description provided.
The text was updated successfully, but these errors were encountered: