staymetal

staymetal

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 !!

Showing Posts 1 to 10

AstonJ

AstonJ

You might find this thread of interest:

And this post:

And I have to ask, why not just use Postgres?

sergio

sergio

Some of the replies in that thread are a trainwreck. :frowning:

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.

AstonJ

AstonJ

If the replies are helpful (and aren’t too off-topic) then that can definitely be a good thing :023:

Sometimes I put myself in the shoes of the person asking the question, and ask myself, if it were me, what would I wish I was told or made aware of? Postgres is excellent and I can’t see any good reason to use Sqlite over it in Phoenix - so why not help the OP by sharing this info?

I think in topics like this it can not only advance the OP, but be generally progressive as well - just like we’ve seen with the shift from MySQL to Postgres, PHP to Rails, and now, people recommending Phoenix in cases where it makes sense to do so as well :slight_smile:

gon782

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.

staymetal

staymetal OP

Thank you for your replies guys..truly elixir has an awesome community !!

staymetal

staymetal OP

Im learning elixir on archlinux running on android.Postgresql and mariadb are segfaulting on it so im left with sqlite !

gon782

gon782

Wow, that is an odd environment. Does that usually work well (apart from apparently with DBs)? :smiley:

staymetal

staymetal OP

Yes sir !!..its great !!!

Working : full linux arch environment
Elixir
Phoenix
Java and JVM
Erlang
Gcc,g++
asm
Python
Ruby
sqlite
Haskell
Metasploit :slight_smile:
Hydra
Backdoor factory
And a ton of penetration tools

Not working :

             Mariadb
             Postgresql
             Nodejs and Npm
kokolegorille

kokolegorille

Oh… funny tools. I wonder if we could take advantage of Elixir concurrency with Hydra and Metasploit.

AstonJ

AstonJ

I would still not recommend it is used over Postgres with Phoenix - it’s better to use the same DB in development as production if at all possible. Postgres is not that much more difficult to set-up either Imo (least not on Mac and Linux - not sure about Windows).

Having said that, the OP’s use-case is different - they don’t have any choice :lol:

That’s interesting! What kind of hardware is that on?

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
Stef-Verniers
Hello I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
matthias.oberleitner
Hi, I’m evaluating Ash as a foundation for our future business applications. So far I love it, and there’s just one usecase I haven’t be...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews