Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a single main, and allow to select driver at compile time or run time #1

Open
dolmen opened this issue May 16, 2022 · 0 comments
Open

Comments

@dolmen
Copy link

dolmen commented May 16, 2022

The single difference between the 2 implementation should be the selected SQL driver to use.

Selecting the SQL driver could be done either:

  • at build time, using build tags with go build -tag
  • at run time, using a command-line flag (this requires to embed both drivers)
@dolmen dolmen changed the title Use a single code Use a single main, and select driver at compile time or run time May 16, 2022
@dolmen dolmen changed the title Use a single main, and select driver at compile time or run time Use a single main, and allow to select driver at compile time or run time May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant