wintermeyer

wintermeyer

A "more useful" default for ash_postgres Version possible?

Every time I use mix igniter.install ash_postgres I run into this situation:

What is the minimum PostgreSQL version you will be using?

AshPostgres uses this information when generating queries and migrations,
to choose the best available features for your version of PostgreSQL.


Please enter the version in the format major.minor.patch (e.g. 13.4.0)

Default: 16.0.0

❯

Of course I can run psql --version in an other terminal to find the answer to that question (at least for my development system) but I don’t want to. I am using igniter to make my life easier.

Why doesn’t igniter try to run psql --version or something similar in the background and give me something like this as an option:

What is the minimum PostgreSQL version you will be using?

AshPostgres uses this information when generating queries and migrations,
to choose the best available features for your version of PostgreSQL.

On this system we found a PostgreSQL with the version number 14.13

Please enter the version in the format major.minor.patch (e.g. 13.4.0)

Default: 14.13.0

❯

This will make the live of 99% of all developers easier. And the other 1% doesn’t have any disadvantages.

Marked As Solved

zachdaniel

zachdaniel

Creator of Ash

Sounds very useful :slight_smile: please open an issue/PR :slight_smile:

Also Liked

Where Next?

Popular in Questions Top

New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
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
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

Other popular topics 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
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49266 226
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement