Skip to content

Commit 56d37a6

Browse files
committed
Add sqlite to tests and documentation
1 parent e190684 commit 56d37a6

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
composer.phar
2-
vendor/
2+
vendor/
3+
data.db

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ There are also proof-of-concept ports of this script that only support basic RES
2727

2828
## Requirements
2929

30-
- PHP 7.0 or higher with PDO drivers for MySQL, PgSQL or SqlSrv enabled
30+
- PHP 7.0 or higher with PDO drivers for MySQL, PgSQL, SqlSrv or SQLite enabled
3131
- MySQL 5.6 / MariaDB 10.0 or higher for spatial features in MySQL
3232
- PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
3333
- SQL Server 2012 or higher (2017 for Linux support)
34+
- SQLite 3 or higher (has no geospatial support)
3435

3536
## Installation
3637

@@ -64,8 +65,8 @@ Edit the following lines in the bottom of the file "`api.php`":
6465

6566
These are all the configuration options and their default value between brackets:
6667

67-
- "driver": `mysql`, `pgsql` or `sqlsrv` (`mysql`)
68-
- "address": Hostname of the database server (`localhost`)
68+
- "driver": `mysql`, `pgsql`, `sqlsrv` or `sqlite` (`mysql`)
69+
- "address": Hostname (or filename) of the database server (`localhost`)
6970
- "port": TCP port of the database server (defaults to driver default)
7071
- "username": Username of the user connecting to the database (no default)
7172
- "password": Password of the user connecting to the database (no default)
@@ -85,7 +86,7 @@ These are all the configuration options and their default value between brackets
8586
These limitation and constrains apply:
8687

8788
- Primary keys should either be auto-increment (from 1 to 2^53) or UUID
88-
- Composite primary or foreign keys are not supported
89+
- Composite primary and composite foreign keys are not supported
8990
- Complex writes (transactions) are not supported
9091
- Complex queries calling functions (like "concat" or "sum") are not supported
9192
- Database must support and define foreign key constraints

docker/debian10/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM debian:10
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
# install: php / mysql / postgres / tools / mssql deps
5+
# install: php / mysql / postgres / sqlite / tools / mssql deps
66
RUN apt-get update && apt-get -y install \
77
php-cli php-xml \
88
mariadb-server mariadb-client php-mysql \
99
postgresql php-pgsql \
1010
postgresql-11-postgis-2.5 \
11+
sqlite3 php-sqlite3 \
1112
git wget
1213

1314
# install run script

docker/debian9/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM debian:9
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
# install: php / mysql / postgres / tools / mssql deps
5+
# install: php / mysql / postgres / sqlite / tools / mssql deps
66
RUN apt-get update && apt-get -y install \
77
php-cli php-xml \
88
mariadb-server mariadb-client php-mysql \
99
postgresql php-pgsql \
1010
postgresql-9.6-postgis-2.3 \
11+
sqlite3 php-sqlite3 \
1112
git wget
1213

1314
# install run script

docker/ubuntu16/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM ubuntu:16.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
# install: php / mysql / postgres / tools / mssql deps
5+
# install: php / mysql / postgres / sqlite / tools / mssql deps
66
RUN apt-get update && apt-get -y install \
77
php-cli php-xml \
88
mariadb-server mariadb-client php-mysql \
99
postgresql php-pgsql \
1010
postgresql-9.5-postgis-2.2 \
11+
sqlite3 php-sqlite3 \
1112
git wget \
1213
curl apt-transport-https debconf-utils sudo
1314

docker/ubuntu18/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM ubuntu:18.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
# install: php / mysql / postgres / tools
5+
# install: php / mysql / postgres / sqlite / tools
66
RUN apt-get update && apt-get -y install \
77
php-cli php-xml \
88
mysql-server mysql-client php-mysql \
99
postgresql php-pgsql \
1010
postgresql-10-postgis-2.4 \
11+
sqlite3 php-sqlite3 \
1112
git wget
1213

1314
# install locales

docker/ubuntu20/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ FROM ubuntu:20.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

5-
# install: php / mysql / postgres / tools
5+
# install: php / mysql / postgres / sqlite / tools
66
RUN apt-get update && apt-get -y install \
77
php-cli php-xml \
88
mysql-server mysql-client php-mysql \
99
postgresql php-pgsql \
1010
postgresql-12-postgis-3 \
11+
sqlite3 php-sqlite3 \
1112
git wget
1213

1314
# install locales

0 commit comments

Comments
 (0)