|
12 | 12 | "## Prerequisites\n",
|
13 | 13 | "\n",
|
14 | 14 | "You must have:\n",
|
| 15 | + "* [PostgreSQL](https://www.postgresql.org/)\n", |
15 | 16 | "* [Python 3](https://www.python.org/)\n",
|
16 | 17 | "* [Jupyter Notebook](https://jupyter.org/install)\n",
|
17 | 18 | "* [Docker](https://docs.docker.com/get-started/get-docker/)\n",
|
18 | 19 | "* [Docker compose](https://docs.docker.com/compose/install/)\n",
|
19 | 20 | "* [curl](https://curl.se)\n",
|
20 | 21 | "* [CipherStash account](https://cipherstash.com/signup)\n",
|
21 |
| - "* [CipherStash CLI](https://github.com/cipherstash/cli-releases/releases/latest)" |
| 22 | + "* [CipherStash CLI](https://github.com/cipherstash/cli-releases/releases/latest)\n", |
| 23 | + "\n", |
| 24 | + "> Please note that on MS Windows' PowerShell, there is a built-in alias `curl` which is different from [curl listed above](https://curl.se).\n", |
| 25 | + "A simple way around this is to start Jupyter Notebook from cmd.exe instead of PowerShell." |
22 | 26 | ]
|
23 | 27 | },
|
24 | 28 | {
|
|
318 | 322 | "metadata": {},
|
319 | 323 | "outputs": [],
|
320 | 324 | "source": [
|
321 |
| - "! curl https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-eql.sql | PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started" |
| 325 | + "%env PGPASSWORD=postgres\n", |
| 326 | + "! curl https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-eql.sql | psql -h localhost -p 5432 -U postgres cipherstash_getting_started" |
322 | 327 | ]
|
323 | 328 | },
|
324 | 329 | {
|
|
336 | 341 | "metadata": {},
|
337 | 342 | "outputs": [],
|
338 | 343 | "source": [
|
339 |
| - "! PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started < application_types.sql # should output messages like `CREATE DOMAIN`" |
| 344 | + "%env PGPASSWORD=postgres \n", |
| 345 | + "! psql -h localhost -p 5432 -U postgres cipherstash_getting_started < application_types.sql" |
340 | 346 | ]
|
341 | 347 | },
|
342 | 348 | {
|
|
354 | 360 | "metadata": {},
|
355 | 361 | "outputs": [],
|
356 | 362 | "source": [
|
357 |
| - "! PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started < create_examples_table.sql" |
| 363 | + "%env PGPASSWORD=postgres\n", |
| 364 | + "! psql -h localhost -p 5432 -U postgres cipherstash_getting_started < create_examples_table.sql" |
358 | 365 | ]
|
359 | 366 | },
|
360 | 367 | {
|
|
538 | 545 | "outputs": [],
|
539 | 546 | "source": [
|
540 | 547 | "# From CipherStash Proxy; you should see plaintext JSONB\n",
|
541 |
| - "!printf '\\\\x \\n select * from examples limit 1;' | PGPASSWORD=postgres psql -h localhost -p 6432 -U postgres cipherstash_getting_started" |
| 548 | + "%env PGPASSWORD=postgres\n", |
| 549 | + "!printf '\\\\x \\n select * from examples limit 1;' | psql -h localhost -p 6432 -U postgres cipherstash_getting_started" |
542 | 550 | ]
|
543 | 551 | },
|
544 | 552 | {
|
|
557 | 565 | "outputs": [],
|
558 | 566 | "source": [
|
559 | 567 | "# From PostgreSQL; you should see JSONB with encrypted values\n",
|
560 |
| - "!printf '\\\\x \\n select * from examples limit 1;' | PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started" |
| 568 | + "%env PGPASSWORD=postgres\n", |
| 569 | + "!printf '\\\\x \\n select * from examples limit 1;' | psql -h localhost -p 5432 -U postgres cipherstash_getting_started" |
561 | 570 | ]
|
562 | 571 | },
|
563 | 572 | {
|
|
0 commit comments