gorm.io
gorm.io copied to clipboard
[Question]
Document Link
https://gorm.io/docs/connecting_to_the_database.html
Your Question
How do I use a custom database driver for databases other than mysql and postgresql? This is very unclear to me in the docs, but I managed to do this by creating a custom dialector and passing it to the open function.
Expected answer
This should either be documented, or be consistent with the way its done for mysql or postgresql. Context: https://github.com/iamemilio/gorm-instrumentation-demo/tree/master/basic-gorm-example