You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`listen_on`| 0.0.0.0:8080 | Interface and port on which the web server should listen |
12
-
|`database_url`| sqlite://sqlpage.db?mode=rwc | Database connection URL, in the form `dbname://user:password@host:port/dbname`. Special characters in user and password should be [percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding). |
12
+
|`database_url`| sqlite://sqlpage.db?mode=rwc | Database connection URL, in the form `dbengine://user:password@host:port/dbname`. Special characters in user and password should be [percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding). |
13
13
|`port`| 8080 | Like listen_on, but specifies only the port. |
14
14
| `unix_socket` | | Path to a UNIX socket to listen on instead of the TCP port. If specified, SQLPage will accept HTTP connections only on this socket and not on any TCP port. This option is mutually exclusive with `listen_on` and `port`.
15
15
|`max_database_pool_connections`| PostgreSQL: 50<BR> MySql: 75<BR> SQLite: 16<BR> MSSQL: 100 | How many simultaneous database connections to open at most |
@@ -54,7 +54,7 @@ If you have a `.env` file in the current directory or in any of its parent direc
54
54
55
55
The `database_url` parameter sets all the connection parameters for the database, including
56
56
57
-
- the database type (`sqlite`, `postgres`, `mysql`, `mssql`, etc.)
57
+
- the database engine type (`sqlite`, `postgres`, `mysql`, `mssql`, etc.)
58
58
- the username and password
59
59
- the host (or ip adress) and port
60
60
- the database name
@@ -67,7 +67,7 @@ The `database_url` parameter sets all the connection parameters for the database
67
67
-`application_name=my_application` for PostgreSQL to set the application name, which can be useful for monitoring and logging on the database server side.
68
68
-`collation=utf8mb4_unicode_ci` for MySQL to set the collation of the connection
69
69
70
-
All the parameters need to be properly [percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding) if they contain special characters.
70
+
All the parameters need to be properly [percent-encoded](https://developer.mozilla.org/en-US/docs/Glossary/percent-encoding) if they contain special characters like `@` (`%40`), `:` (`%3A`), `/` (`%2F`), `?` (`%3F`), `#` (`%23`).
71
71
72
72
A full connection string for a PostgreSQL database might look like this:
0 commit comments