Skip to content

Commit

Permalink
I need to force this through and talk to someone about how to avoid (#38
Browse files Browse the repository at this point in the history
)

* up to date (#1)

* Cleanup

* Use latest version of docker

* Remove Docker first

* Remove more of Docker

* Start Docker after installing

* fixed misspecification

* breaking apart the workshop

* beginning

* finished first page and added to the dir

* more scaffolding

* more progress

* mid progress in page 3

* a little more

* done for now

* fixing commands

* normal typo and bug finding

* typo fixes from @davecramer

* more general cleanup
  • Loading branch information
thesteve0 authored Jul 11, 2019
1 parent 30e4705 commit 1fd4223
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 197 deletions.
8 changes: 5 additions & 3 deletions basic-postgresql-devel/basicfunctions/02-name-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ operator per the SQL standard.
Let's go ahead and use our cool new function!
'''
```
select brilliance('student');
'''{{execute}}
```{{execute}}
Go ahead and change the name to anything else you want to try.
Expand All @@ -72,7 +72,8 @@ Time to exercise our function again:
```
select brilliance('student', 1);
```{execute}}
```{{execute}}
## Default Values for Parameters
Expand All @@ -95,6 +96,7 @@ LANGUAGE sql;
And now if we call our function we will get those values if we don't specify a value. Before we do this we need to drop our
original function - think about why?....
```
DROP FUNCTION brilliance();
```
Expand Down
2 changes: 1 addition & 1 deletion basic-postgresql-devel/qjsonintro/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ done
echo 'loading wikipedia data'
PGPASSWORD="password" psql -h localhost -U groot -f /data/crunchy_demo_data/wikipedia/wikipedia.ddl.sql workshop
PGPASSWORD="password" psql -h localhost -U groot -d workshop -c '\COPY wikipedia (county, state, json_content, response_attr) from '\''/data/crunchy_demo_data/wikipedia/wikipedia_copy.txt'\'' WITH CSV QUOTE '\''^'\'' '
echo 'finished county boundaries'
echo 'finished wikipedia boundaries'

clear

Expand Down
128 changes: 0 additions & 128 deletions postgis/qpostgisinto/01-spatial-data.md

This file was deleted.

Binary file removed postgis/qpostgisinto/assets/docker_ps.jpg
Binary file not shown.
3 changes: 0 additions & 3 deletions postgis/qpostgisinto/env-init.sh

This file was deleted.

11 changes: 0 additions & 11 deletions postgis/qpostgisinto/finish.md

This file was deleted.

30 changes: 0 additions & 30 deletions postgis/qpostgisinto/index.json

This file was deleted.

18 changes: 0 additions & 18 deletions postgis/qpostgisinto/intro.md

This file was deleted.

3 changes: 0 additions & 3 deletions postgis/qpostgisinto/set-env.sh

This file was deleted.

2 changes: 2 additions & 0 deletions postgis/qpostgisintro/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ unzip

echo 'loading storm center points'
PGPASSWORD="password" psql -h localhost -U groot -f /data/crunchy_demo_data/storms/stormevents.ddl.sql workshop
PGPASSWORD="password" psql -h localhost -U groot -f /data/crunchy_demo_data/boundaries/county_boundaries.ddl.sql workshop
PGPASSWORD="password" psql -h localhost -U groot -d workshop -c '\COPY se_locations (episode_id, event_id, location_index, range, azimuth, location, latitude, longitude, the_geom) from '\''/data/crunchy_demo_data/storms/storm_locations_copy.txt'\'' WITH CSV QUOTE '\''"'\'' '
PGPASSWORD="password" psql -h localhost -U groot -d workshop -c '\COPY county_geometry (statefp, countyfp, countyns, geoid, county_name, namelsad, funcstat, aland, awater, interior_pnt, the_geom) from ''\''/data/crunchy_demo_data/boundaries/county_boundaries_copy.txt'\'' WITH CSV QUOTE '\''"'\'' '
echo 'finished storm center points'

: 'ready to go!'

0 comments on commit 1fd4223

Please sign in to comment.