This description was created by Ellipsis for commit 7e1dc6eee2c2b23dded413484ea852f47a07c1c4
Summary:
Refactored the mutation machine into modular components, enhancing maintainability, code clarity, and handling of various database types with significant updates to files, functions, and tests.
Key points:
Refactored mutation machine into modular components for better maintainability.
Introduced new files for specific tasks like error handling, response awaiting, and result cleaning.
Distributed mutation machine logic across new components, improving code clarity and extendibility.
Updated session handling and mutation processing across various database types.
Modified package.json to include new test scripts for surrealdb and typedb mutations.
Updated src/index.ts to handle errors more effectively in BormClient class.
Enhanced parseBQLMutation function in src/stateMachine/mutation/bql/parse.ts to handle intermediary relations and various operations.
Improved buildSurqlMutation function in src/stateMachine/mutation/surql/build.ts to support updates and deletions.
Refined runSurqlMutationMachine in src/stateMachine/mutation/surql/surqlMutationMachine.ts to handle batched mutations and parse results.
Adjusted runTqlMutationMachine in src/stateMachine/mutation/tql/tqlMutationMachine.ts for better mutation handling.
Enhanced typeDbQueryMachine in src/stateMachine/query/tql/machine.ts for improved query handling.
Updated runTQLQuery in src/stateMachine/query/tql/run.ts to handle transactions and errors more effectively.
Modified tests/mocks/schema.ts and tests/surrealdb/mocks/schema.surql to align with new schema definitions.
Added and updated various test cases in tests/unit/mutations/basic.ts to cover new mutation scenarios.
Summary:
Refactored the mutation machine into modular components, enhancing maintainability, code clarity, and handling of various database types with significant updates to files, functions, and tests.
Key points:
package.json
to include new test scripts forsurrealdb
andtypedb
mutations.src/index.ts
to handle errors more effectively inBormClient
class.parseBQLMutation
function insrc/stateMachine/mutation/bql/parse.ts
to handle intermediary relations and various operations.buildSurqlMutation
function insrc/stateMachine/mutation/surql/build.ts
to support updates and deletions.runSurqlMutationMachine
insrc/stateMachine/mutation/surql/surqlMutationMachine.ts
to handle batched mutations and parse results.runTqlMutationMachine
insrc/stateMachine/mutation/tql/tqlMutationMachine.ts
for better mutation handling.typeDbQueryMachine
insrc/stateMachine/query/tql/machine.ts
for improved query handling.runTQLQuery
insrc/stateMachine/query/tql/run.ts
to handle transactions and errors more effectively.tests/mocks/schema.ts
andtests/surrealdb/mocks/schema.surql
to align with new schema definitions.tests/unit/mutations/basic.ts
to cover new mutation scenarios.Generated with :heart: by ellipsis.dev