@@ -19,12 +19,26 @@ A utility script to import data from Star Wars API to a local postgreSQL databas
19
19
- ` DATABASE ` : Set the name of the database via the ` -db ` or ` --database ` flags
20
20
- ` PORT_ID ` : Set the port to connect to via the ` -p ` or ` --port ` flags
21
21
- ` USERNAME ` : An environment variable of the username you use for postgreSQL (DEFAULT: ` BOOTCAMP_USER ` )
22
+ - To use a different username, use the user flag (`-u, --user`)
22
23
- ` PWD ` : An environment variable of the password you use for postgreSQL (DEFAULT: ` BOOTCAMP_CREDS ` )
24
+ - To use a different password, use the pw flag (`-pw, --password`)
25
+ - ` HOST ` : Set the host to connect to via the ` -h ` or ` --host ` flags
26
+
27
+
23
28
24
29
__ Options__ :
25
30
- ` -db, --database ` : Name of the database to connect to
26
31
- DEFAULT: `bootcamp`
27
32
- To change: `-db=some_db` or `--database=some_other_db`
33
+ - ` -h, --host ` : The host to connect to
34
+ - DEFAULT: `localhost`
35
+ - To change: `-h="localhost"` or `--host="localhost"`
36
+ - ` -u, --user ` : The postgres user
37
+ - DEFAULT: `BOOTCAMP_USER(Environment Variable)`
38
+ - To change: `-u="some-user"` or `--user="other-user"`
39
+ - ` -pw, --password ` : The password to the postgres user
40
+ - DEFAULT: `BOOTCAMP_CREDS(Environment Variable)`
41
+ - To change: `-pw="$0m3P@$$w0rd"` or `--password="$0m3P@$$w0rd"`
28
42
- ` -p, --port ` : The port to connect to
29
43
- DEFAULT: `5432`
30
44
- To change: `-p=5433` or `--port=5433`
0 commit comments