1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2024-11-28 08:58:52 +02:00

update readme to match current reality

This commit is contained in:
Hubert depesz Lubaczewski 2022-06-21 15:56:00 +02:00
parent 696605a948
commit 97aa912331

View File

@ -56,11 +56,15 @@ See the `Installation` section at http://mojolicio.us/ for details.
You will need the following packages installed in your version of Perl:
DBD::Pg
DBI
Date::Simple
Email::Sender
Pg::Explain
Digest::MD5
Email::Sender::Simple
Email::Simple
Email::Valid
Mojolicious
Number::Bytes::Human
Pg::Explain
Install the above packages using `cpan` then `-i Date::Simple`, `-i Email::Sender`, &etc.
@ -75,7 +79,12 @@ Debian, you can:
libxml-simple-perl \
libdbd-pg-perl
And then only add `Pg::Explain` via CPAN.
And then only add missing modules via CPAN.
Alternatively, if you have `cpanm` program you should be able to install all
dependencies using:
cpanm --installdeps .
### 3) PostgreSQL
You'll need to have PostgreSQL installed in order to record all the explain
@ -88,11 +97,16 @@ in the default schema `public`.
#### 3B) Run SQL scripts
Log in to the `explain` database and execute the SQL scripts located in this
project's `sql` directory in the following order:
project's `sql` directory.
You should start with create.sql:
\i create.sql
And then load all patch-NNN.sql files in their numerical order:
\i patch-001.sql
\i patch-002.sql
...
The `create.sql` will create tables in the `explain` database `public` schema,
i.e. `plans` and `users`.