broccolidev

broccolidev

How do I setup Phoenix with SQLite?

The only guide I’ve found suggested adding “{:sqlite_ecto, “~> 1.0.0”}” to my mix.exs, but when running “mix deps.get” I receive the following error:


`Failed to use "ecto" (version 3.5.5) because` `  ecto_sql (version 3.5.3) requires ~> 3.5.0` `  phoenix_ecto (version 4.2.1) requires ~> 3.0` `  sqlite_ecto (versions 1.0.0 to 1.0.2) requires ~> 1.0` `  mix.lock specifies 3.5.5` `** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}`

First Post!

John-Goff

John-Goff

Just did a cursory glance on Github, looks as though that adapter has not been updated for the past 5 years and does not support ecto 3.

Last Post!

ityonemo

ityonemo

Yeah there have been several attempts to bring sqlite_ecto to ecto3 (including an abortive attempt by myself)… I wonder if there’s a way to contribute to a community fund to get that done. I’d pitch in. Any suggestions?

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New

We're in Beta

About us Mission Statement