martin/tests/initdb-martin.sh
Stepan Kuzmin 3c01125fc5
feat: add composite sources support (#184)
* feat: add composite sources support WIP

* feat: handle empty composite sources

* fix: decompose queries

* docs: add docs on composite sources

* ci: push docker image

* test: add composite source tests
2021-04-24 20:19:37 +03:00

16 lines
440 B
Bash
Executable File

#!/bin/sh
set -e
# Perform all actions as $POSTGRES_USER
export PGUSER="$POSTGRES_USER"
echo "Loading Martin fixtures into $POSTGRES_DB"
psql --dbname="$POSTGRES_DB" -f /fixtures/TileBBox.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/table_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/function_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/points1_source.sql
psql --dbname="$POSTGRES_DB" -f /fixtures/points2_source.sql