jackskj / protoc-gen-map

SQL Data mapper framework for grpc/protobuf
Apache License 2.0
129 stars 11 forks source link

MySQL Support #3

Closed izumiya closed 4 years ago

izumiya commented 4 years ago

Hello, protoc-gen-map looks great! Any plans to add MySQL support?

jackskj commented 4 years ago

Hi izumiya, When creating the service server, you are expected to pass sql.DB connection from the database/sql package. MySQL connection with any driver will work. You just have to make sure that your SQL is valid and your DB connections is working.

However, version 0.4.0 will feature parametrized query support for postgresql, but I am not yet 100% sure if the same will be the case for MySQL.