Browse Source

Add sqlite to tests and documentation

Maurits van der Schee 4 years ago
parent
commit
56d37a69f0

+ 2
- 1
.gitignore View File

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

+ 5
- 4
README.md View File

27
 
27
 
28
 ## Requirements
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
   - MySQL 5.6 / MariaDB 10.0 or higher for spatial features in MySQL
31
   - MySQL 5.6 / MariaDB 10.0 or higher for spatial features in MySQL
32
   - PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
32
   - PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
33
   - SQL Server 2012 or higher (2017 for Linux support)
33
   - SQL Server 2012 or higher (2017 for Linux support)
34
+  - SQLite 3 or higher (has no geospatial support)
34
 
35
 
35
 ## Installation
36
 ## Installation
36
 
37
 
64
 
65
 
65
 These are all the configuration options and their default value between brackets:
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
 - "port": TCP port of the database server (defaults to driver default)
70
 - "port": TCP port of the database server (defaults to driver default)
70
 - "username": Username of the user connecting to the database (no default)
71
 - "username": Username of the user connecting to the database (no default)
71
 - "password": Password of the user connecting to the database (no default)
72
 - "password": Password of the user connecting to the database (no default)
85
 These limitation and constrains apply:
86
 These limitation and constrains apply:
86
 
87
 
87
   - Primary keys should either be auto-increment (from 1 to 2^53) or UUID
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
   - Complex writes (transactions) are not supported
90
   - Complex writes (transactions) are not supported
90
   - Complex queries calling functions (like "concat" or "sum") are not supported
91
   - Complex queries calling functions (like "concat" or "sum") are not supported
91
   - Database must support and define foreign key constraints
92
   - Database must support and define foreign key constraints

+ 2
- 1
docker/debian10/Dockerfile View File

2
 
2
 
3
 ARG DEBIAN_FRONTEND=noninteractive
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
 RUN apt-get update && apt-get -y install \
6
 RUN apt-get update && apt-get -y install \
7
 php-cli php-xml \
7
 php-cli php-xml \
8
 mariadb-server mariadb-client php-mysql \
8
 mariadb-server mariadb-client php-mysql \
9
 postgresql php-pgsql \
9
 postgresql php-pgsql \
10
 postgresql-11-postgis-2.5 \
10
 postgresql-11-postgis-2.5 \
11
+sqlite3 php-sqlite3 \
11
 git wget
12
 git wget
12
 
13
 
13
 # install run script
14
 # install run script

+ 2
- 1
docker/debian9/Dockerfile View File

2
 
2
 
3
 ARG DEBIAN_FRONTEND=noninteractive
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
 RUN apt-get update && apt-get -y install \
6
 RUN apt-get update && apt-get -y install \
7
 php-cli php-xml \
7
 php-cli php-xml \
8
 mariadb-server mariadb-client php-mysql \
8
 mariadb-server mariadb-client php-mysql \
9
 postgresql php-pgsql \
9
 postgresql php-pgsql \
10
 postgresql-9.6-postgis-2.3 \
10
 postgresql-9.6-postgis-2.3 \
11
+sqlite3 php-sqlite3 \
11
 git wget
12
 git wget
12
 
13
 
13
 # install run script
14
 # install run script

+ 2
- 1
docker/ubuntu16/Dockerfile View File

2
 
2
 
3
 ARG DEBIAN_FRONTEND=noninteractive
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
 RUN apt-get update && apt-get -y install \
6
 RUN apt-get update && apt-get -y install \
7
 php-cli php-xml \
7
 php-cli php-xml \
8
 mariadb-server mariadb-client php-mysql \
8
 mariadb-server mariadb-client php-mysql \
9
 postgresql php-pgsql \
9
 postgresql php-pgsql \
10
 postgresql-9.5-postgis-2.2 \
10
 postgresql-9.5-postgis-2.2 \
11
+sqlite3 php-sqlite3 \
11
 git wget \
12
 git wget \
12
 curl apt-transport-https debconf-utils sudo
13
 curl apt-transport-https debconf-utils sudo
13
 
14
 

+ 2
- 1
docker/ubuntu18/Dockerfile View File

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

+ 2
- 1
docker/ubuntu20/Dockerfile View File

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

Loading…
Cancel
Save