# Sequel Database Configuration
<% if @database == "sqlite" %>
development: "sqlite://db/development.sqlite3"
test: "sqlite://db/test.sqlite3"
production: "sqlite://db/production.sqlite3"
<% elsif @database == "postgresql" || @database == 'pg' %>
development: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_development"
test: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_test"
production: "postgres://<%= `whoami`.chop %>@localhost/<%= @name %>_production"
<% elsif @database == "mysql" %>
development: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_development"
test: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_test"
production: "mysql2://<%= `whoami`.chop %>@localhost/<%= @name %>_production"
<% elsif @database == "mongo" || @database == "mongodb" %>
development:
  host: localhost
  port: 27017
  database: <%= @name %>_development
  username:
  password:

test:
  host: localhost
  port: 27017
  database: <%= @name %>_test
  username:
  password:

production:
  host: localhost
  port: 27017
  database: <%= @name %>_production
  username:
  password:
<% end %>