Skip to content

Commit 47b76aa

Browse files
committed
chore(golang,python): update instructions to export env vars for database connection
1 parent 96f6b62 commit 47b76aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Generates the endpoints (or a whole app) from a mapping (SQL query -> URL)
5555
| Language | Commands to run the application |
5656
| -----------| --------------------------------|
5757
| JavaScript | <pre>$ npm install<br/>$ export DB_NAME=my-db DB_USER=my-user DB_PASSWORD=my-password<br/>$ npm start</pre> |
58-
| Golang | <pre>$ go run *.go</pre>or<pre>$ go build -o app<br/>$ ./app</pre> |
58+
| Golang | <pre>$ export DB_NAME=my-db DB_USER=my-user DB_PASSWORD=my-password<br/>$ go run *.go</pre>or<pre>$ go build -o app<br/>$ ./app</pre> |
5959
| Python | <pre>$ pip install -r requirements.txt<br/>$ export DB_NAME=my-db DB_USER=my-user DB_PASSWORD=my-password<br/>$ uvicorn app:app</pre> |
6060

6161
---

src/cli.js

+3
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,18 @@ to install its dependencies and
310310
afteward to run`);
311311
} else if (lang === 'go') {
312312
console.info(`Use
313+
export DB_NAME=db DB_USER=user DB_PASSWORD=secret
313314
go run *.go
314315
or
315316
go build -o app
317+
export DB_NAME=db DB_USER=user DB_PASSWORD=secret
316318
./app
317319
to build and run it`)
318320
} else if (lang === 'python') {
319321
console.info(`Use
320322
pip install -r requirements.txt
321323
to install its dependencies and
324+
export DB_NAME=db DB_USER=user DB_PASSWORD=secret
322325
uvicorn app:app
323326
afteward to run`)
324327
}

0 commit comments

Comments
 (0)