Browse Source

Add sqlite to tests and documentation

Maurits van der Schee 4 years ago
parent
commit
56d37a69f0

+ 2
- 1
.gitignore View File

@@ -1,2 +1,3 @@
1 1
 composer.phar
2
-vendor/
2
+vendor/
3
+data.db

+ 5
- 4
README.md View File

@@ -27,10 +27,11 @@ There are also proof-of-concept ports of this script that only support basic RES
27 27
 
28 28
 ## Requirements
29 29
 
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
31 31
   - MySQL 5.6 / MariaDB 10.0 or higher for spatial features in MySQL
32 32
   - PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
33 33
   - SQL Server 2012 or higher (2017 for Linux support)
34
+  - SQLite 3 or higher (has no geospatial support)
34 35
 
35 36
 ## Installation
36 37
 
@@ -64,8 +65,8 @@ Edit the following lines in the bottom of the file "`api.php`":
64 65
 
65 66
 These are all the configuration options and their default value between brackets:
66 67
 
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`)
69 70
 - "port": TCP port of the database server (defaults to driver default)
70 71
 - "username": Username of the user connecting to the database (no default)
71 72
 - "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
85 86
 These limitation and constrains apply:
86 87
 
87 88
   - 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
89 90
   - Complex writes (transactions) are not supported
90 91
   - Complex queries calling functions (like "concat" or "sum") are not supported
91 92
   - Database must support and define foreign key constraints

+ 2
- 1
docker/debian10/Dockerfile View File

@@ -2,12 +2,13 @@ FROM debian:10
2 2
 
3 3
 ARG DEBIAN_FRONTEND=noninteractive
4 4
 
5
-# install: php / mysql / postgres / tools / mssql deps
5
+# install: php / mysql / postgres / sqlite / tools / mssql deps
6 6
 RUN apt-get update && apt-get -y install \
7 7
 php-cli php-xml \
8 8
 mariadb-server mariadb-client php-mysql \
9 9
 postgresql php-pgsql \
10 10
 postgresql-11-postgis-2.5 \
11
+sqlite3 php-sqlite3 \
11 12
 git wget
12 13
 
13 14
 # install run script

+ 2
- 1
docker/debian9/Dockerfile View File

@@ -2,12 +2,13 @@ FROM debian:9
2 2
 
3 3
 ARG DEBIAN_FRONTEND=noninteractive
4 4
 
5
-# install: php / mysql / postgres / tools / mssql deps
5
+# install: php / mysql / postgres / sqlite / tools / mssql deps
6 6
 RUN apt-get update && apt-get -y install \
7 7
 php-cli php-xml \
8 8
 mariadb-server mariadb-client php-mysql \
9 9
 postgresql php-pgsql \
10 10
 postgresql-9.6-postgis-2.3 \
11
+sqlite3 php-sqlite3 \
11 12
 git wget
12 13
 
13 14
 # install run script

+ 2
- 1
docker/ubuntu16/Dockerfile View File

@@ -2,12 +2,13 @@ FROM ubuntu:16.04
2 2
 
3 3
 ARG DEBIAN_FRONTEND=noninteractive
4 4
 
5
-# install: php / mysql / postgres / tools / mssql deps
5
+# install: php / mysql / postgres / sqlite / tools / mssql deps
6 6
 RUN apt-get update && apt-get -y install \
7 7
 php-cli php-xml \
8 8
 mariadb-server mariadb-client php-mysql \
9 9
 postgresql php-pgsql \
10 10
 postgresql-9.5-postgis-2.2 \
11
+sqlite3 php-sqlite3 \
11 12
 git wget \
12 13
 curl apt-transport-https debconf-utils sudo
13 14
 

+ 2
- 1
docker/ubuntu18/Dockerfile View File

@@ -2,12 +2,13 @@ FROM ubuntu:18.04
2 2
 
3 3
 ARG DEBIAN_FRONTEND=noninteractive
4 4
 
5
-# install: php / mysql / postgres / tools
5
+# install: php / mysql / postgres / sqlite / tools
6 6
 RUN apt-get update && apt-get -y install \
7 7
 php-cli php-xml \
8 8
 mysql-server mysql-client php-mysql \
9 9
 postgresql php-pgsql \
10 10
 postgresql-10-postgis-2.4 \
11
+sqlite3 php-sqlite3 \
11 12
 git wget
12 13
 
13 14
 # install locales

+ 2
- 1
docker/ubuntu20/Dockerfile View File

@@ -2,12 +2,13 @@ FROM ubuntu:20.04
2 2
 
3 3
 ARG DEBIAN_FRONTEND=noninteractive
4 4
 
5
-# install: php / mysql / postgres / tools
5
+# install: php / mysql / postgres / sqlite / tools
6 6
 RUN apt-get update && apt-get -y install \
7 7
 php-cli php-xml \
8 8
 mysql-server mysql-client php-mysql \
9 9
 postgresql php-pgsql \
10 10
 postgresql-12-postgis-3 \
11
+sqlite3 php-sqlite3 \
11 12
 git wget
12 13
 
13 14
 # install locales

Loading…
Cancel
Save