volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

How to add support for other database (eg. Oracle)? #167

Closed AP-Nothize closed 7 years ago

AP-Nothize commented 7 years ago

What is the estimated effort and where should I begin?

aarondl commented 7 years ago

Hey there @AP-Nothize.

I'd invite you to check out the existing PRs which have previously added other DB support:

Mainly it begins with creating a driver in bdb/drivers/x.go and ensuring that the []Tables output is correct. You can see this by running sqlboiler with --debug. Please keep in mind we are attempting to refactor the way drivers work so that people don't need to compile all drivers since the most common scenario is to only use one, as well as facilitate forking to enable custom types (#143).

It will be blocked on merging until 143 lands, and although that's the main focus whenever I get sqlboiler time right now, time is short currently. Though there should be a ramp-up happening towards v3 in the coming months.