staymetal
How to configure phoenix for sqlite
Can one guide me step by step in configuring phoenix with sqlite ?
P.S. im on elixir 1.6 and latest phoenix
Thanks a ton !!
Most Liked
gon782
While I agree that Postgres works fine and is a good enough solution for most people to start with, SQLite is much simpler than all of the “real” databases. It works on a library level, requires no setup (meaning it doesn’t require any privileges on the box you’re working on) whatsoever and has bindings in every language out there. You get trivial database copying out of the box and all in all it’s a much better fit for small projects.
LostKobrakai
Phoenix can generate that with mix phx.new --database sqlite3. No need to manually do that.
sergio
Some of the replies in that thread are a trainwreck. ![]()
This guy comes in with a clear question and some people just go “use postgresql”. Thankfully Chris came in and replied with some actual information.
@staymetal check out this link: Twenty Eight Twelve - Creating a Phoenix Framework Application with SQLite
Seems like a simple adapter switch.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









