Tool which generates a typescript client for SurrealDB and zod schema of a given database
surrealdb-migrations [requires the use of `OVERWRITE` clauses](https://github.com/Odonno/surrealdb-migrations/blob/main/templates/empty/schemas/script_migration.surql), which are not supported by surrealdb-client-generator: ```haskell No config file found. Starting temporary SurrealDB instance Temporary SurrealDB instance started at http://localhost:43119 Connecting to database Connected to database successfully 🔴 This did not work as expected 🥺 🔴 I am sorry that this happened, and I kindly ask for your help to fix this. 🔴 🔴 Please open an issue here: 🔴 👉 https://github.com/sebastianwessel/surrealdb-client-generator/issues 🔴 🔴 Please copy & paste the following code into the ticket: ===== ResponseError: There was a problem with the database: Parse error: Failed to parse query at line 87 column 8 expected query to end | 87 | DEFINE TABLE OVERWRITE script_migration SCHEMAFULL | ^ perhaps missing a semicolon on the previous statement? at Surreal.query_raw (/home/zvictor/development/plugat/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected]_/node_modules/surrealdb/dist/index.cjs:1:45589) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Surreal.query (/home/zvictor/development/plugat/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected]_/node_modules/surrealdb/dist/index.cjs:1:45244) at async insertDefinitions (/home/zvictor/development/plugat/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected][email protected]_/node_modules/@sebastianwessel/surql-gen/dist/index.js:92:3) at async main (/home/zvictor/development/plugat/node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected][email protected]_/node_modules/@sebastianwessel/surql-gen/dist/index.js:1006:9) === 🔴 If possible, please provide some more detailed information if possible. 🔴 🙏 Thank You! I will try to fix it. ``` Removing the `OVERWRITE` clauses removes the error.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by zvictor and has received 0 comments.