SurrealDB driver; where's what and such? #353
Replies: 1 comment 1 reply
-
When writing the dialect, does it have to reside in this repo? (as in, to fork or not to fork?)It does not have to be in the same repo. The only advantage will be to make use of any utilities in the There are a lot of subfolders (qm, dm, ...) - what are they for, exactly?So, each dialect is unique, and each query type in a dialect is unique. This is to prevent creating a technically wrong query.
There are a few specialized mods Am I right to assume that a dialect overwrites a clause's SQL builder? Looking at the FROM implementation for example, I can see many things that SurrealDB's version does not do or have.
How do I go about implementing this for the generator, let alone the modeling?The code generation requires and implementation of a The critical thing is to implement There is a common set of templates that generates code using that information, but drivers can also include their own templates, or overrides some parts (see the templates that end with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ohai, it's me :)
I took a look at the current
dialect/
s, mainly the MySQL one, to figure out what requirements there are to implement the oddities that SurrealDB has. I like the functional approach, but there is so much going on... x)So, let's start from the top:
dialect
overwrites aclause
's SQL builder? Looking at theFROM
implementation for example, I can see many things that SurrealDB's version does not do or have.But this only pertains to the query builder... How do I go about implementing this for the generator, let alone the modeling? I took a roundtrip through the dogs - there are many features in Bob, and I'd love to make sure that i cover them adequately. :)
Kind regards,
Ingwie
Beta Was this translation helpful? Give feedback.
All reactions