Replies: 2 comments 1 reply
-
The bigger issue with modifying the There's no easy solution to use a client that doesn't follow the standard library. A popular example is pgx, thankfully, pgx has the One possibility is to overwrite the templates in your driver, but that may be quite tedious to maintain. Another possibility is to create a stdlib wrapper driver around the gorqlite client. I think this is the |
Beta Was this translation helpful? Give feedback.
-
I have started to develop a stdlib wrapper driver, agreeing with you that this is the best solution. However, due to the design of rqlite, it is not really possible. For example, rqlite does not support transitions, it adds queues... (see here for more details). So it's not really compatible with the sql stdlib implementation. Sadly, I think I will use another RDBMS. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to develop a driver for rqlite database with the gorqlite client. I succeeded in generating the sources
Now, I need to make some modifications to the sqlboiler project in order to support the gorqlite client in addition to database/sql. Indeed, rqlite doesn't support transactions for example (cf https://github.com/volatiletech/sqlboiler/blob/master/boil/db.go). Moreover, the return type "sql.Rows" is different with gorqlite.
I thought about several implementations:
However, this includes modifying the generation of files by sqlboil, to replace the Executor interface by BaseExecutor, and it will be necessary for everyone to re-generate their source.
So I'm looking to make the necessary changes without creating any breaking change. If anyone has advice or help, I'm interested.
Beta Was this translation helpful? Give feedback.
All reactions