Skip to content

Commit

Permalink
Correctly import sql driver according to project generation
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod authored and ellmetha committed Mar 7, 2024
1 parent 88954f7 commit 2eef269
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ require "marten"
<%- if context.targets_auth? -%>
require "marten_auth"
<%- end -%>
<%- if context.database == "sqlite3" -%>
require "sqlite3"
<%- elsif context.database == "mysql" -%>
require "mysql"
<%- elsif context.database == "postgresql" -%>
require "pg"
<%- end -%>

# Configuration requirements.
require "../config/settings/base"
Expand Down

0 comments on commit 2eef269

Please sign in to comment.