-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
134 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,19 @@ | ||
{0 ocsipersist-dbm} | ||
|
||
DBM backend for Ocsipersist. | ||
For the API documentation see OPAM package {{:../ocsipersist/Ocsipersist/index.html}ocsipersist}. | ||
This page describes how to configure the DBM backend. | ||
The DBM backend uses a server process [ocsidbm]. | ||
|
||
{1 Using as a library} | ||
For the API documentation see OPAM package [ocsipersist]. | ||
|
||
If you are not using Ocsigen Server, you can configure with | ||
{[ | ||
Ocsipersist_settings.set_delay_loading | ||
Ocsipersist_settings.set_store | ||
Ocsipersist_settings.set_ocsidbm | ||
Ocsipersist_settings.set_error_log_path | ||
]} | ||
If you are not using Ocsigen Server's configuration file, | ||
add library [ocsipersist-dbm.settings] in your Dune file, and | ||
use module {!Ocsipersist_settings} | ||
to configure the storage file. | ||
|
||
{1 Using with Ocsigen Server: ocsipersist-dbm-config} | ||
|
||
For the API documentation see OPAM package [ocsipersist]. | ||
|
||
Here we document the configuration options of the ocsigenserver extension. | ||
All sub-tags of the [extension] tag are optional. | ||
|
||
{[ | ||
<extension findlib-package="ocsipersist-dbm-config"> | ||
<delayloading val="false"/> | ||
<store dir="store"/> | ||
<ocsidbm name="ocsidbm"/> | ||
</extension> | ||
]} | ||
If you want to configure Ocsipersist-dbm from Ocsigen Server's | ||
configuration file, use package | ||
{{:../ocsipersist-dbm-config/Ocsipersist_config/index.html}ocsipersist-dbm-config}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(** | ||
If you are using the DBM backend of Ocsipersist | ||
with Ocsigen Server with a configuration file, | ||
install package [ocsipersist-dbm-config] and | ||
use the following configuration tags. | ||
All sub-tags of the [extension] tag are optional. | ||
{@xml[ | ||
<extension findlib-package="ocsipersist-dbm-config"> | ||
<delayloading val="false"/> | ||
<store dir="store"/> | ||
<ocsidbm name="ocsidbm"/> | ||
</extension> | ||
]} | ||
*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,18 @@ | ||
{0 ocsipersist-pgsql} | ||
|
||
{1 Using as a library} | ||
For the API documentation see OPAM package [ocsipersist]. | ||
|
||
If you are not using Ocsigen Server, you can configure with: | ||
{[ | ||
Ocsipersist_settings.set_host | ||
Ocsipersist_settings.set_port | ||
Ocsipersist_settings.set_database | ||
Ocsipersist_settings.set_user | ||
Ocsipersist_settings.set_password | ||
Ocsipersist_settings.set_connexion_pool_size | ||
Ocsipersist_settings.set_unix_domain_socket_dir | ||
]} | ||
PostgreSQL backend for Ocsipersist. | ||
For the API documentation see OPAM package {{:../ocsipersist/Ocsipersist/index.html}ocsipersist}. | ||
This page describes how to configure the PostgreSQL backend. | ||
|
||
{1 Using with Ocsigen Server: ocsipersist-psql-config} | ||
|
||
For the API documentation see OPAM package [ocsipersist]. | ||
{1 Using as a library} | ||
|
||
Here we document the configuration options of the ocsigenserver extension. | ||
All attributes of the [database] tag are optional. | ||
If you are not using Ocsigen Server's configuration file, | ||
add library [ocsipersist-pgsql.settings] in your Dune file, and | ||
use module {!Ocsipersist_settings} | ||
to configure the storage file. | ||
|
||
One can either define a host to connect to: | ||
{[ | ||
<extension findlib-package="ocsipersist-pgsql-config"> | ||
<database | ||
host="localhost" | ||
port="3000" | ||
user="ocsipersist" | ||
password="<secret>" | ||
size_conn_pool = "16" | ||
/> | ||
</extension> | ||
]} | ||
{1 Using with Ocsigen Server: ocsipersist-pgsql-config} | ||
|
||
Or a UNIX domain socket: | ||
{[ | ||
<extension findlib-package="ocsipersist-pgsql-config"> | ||
<database | ||
unix_domain_socket_dir = "pgsql_socket" | ||
user="ocsipersist" | ||
password="<secret>" | ||
size_conn_pool = "16" | ||
/> | ||
</extension> | ||
]} | ||
If you want to configure Ocsipersist-pgsql from Ocsigen Server's | ||
configuration file, use package | ||
{{:../ocsipersist-pgsql-config/Ocsipersist_config/index.html}ocsipersist-pgsql-config}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(** | ||
If you are using the PostgreSQL backend of Ocsipersist | ||
with Ocsigen Server with a configuration file, | ||
install package [ocsipersist-pgsql-config] and | ||
use the following configuration tags. | ||
All attributes of the [database] tag are optional. | ||
One can either define a host to connect to: | ||
{@xml[ | ||
<extension findlib-package="ocsipersist-pgsql-config"> | ||
<database | ||
host="localhost" | ||
port="3000" | ||
user="ocsipersist" | ||
password="<secret>" | ||
size_conn_pool = "16" | ||
/> | ||
</extension> | ||
]} | ||
Or a UNIX domain socket: | ||
{@xml[ | ||
<extension findlib-package="ocsipersist-pgsql-config"> | ||
<database | ||
unix_domain_socket_dir = "pgsql_socket" | ||
user="ocsipersist" | ||
password="<secret>" | ||
size_conn_pool = "16" | ||
/> | ||
</extension> | ||
]} | ||
*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
{0 ocsipersist-sqlite} | ||
|
||
SQLite backend for Ocsipersist. | ||
For the API documentation see OPAM package {{:../ocsipersist/Ocsipersist/index.html}ocsipersist}. | ||
This page describes how to configure the SQLite backend. | ||
|
||
{1 Using as a library} | ||
|
||
For the API documentation see OPAM package [ocsipersist]. | ||
If you are not using Ocsigen Server's configuration file, | ||
add library [ocsipersist-sqlite.settings] in your Dune file, and | ||
use module {!Ocsipersist_settings} to configure the storage file. | ||
|
||
If you are not using Ocsigen Server, you can configure the storage file with | ||
{[ | ||
Ocsipersist_settings.set_db_file | ||
]} | ||
|
||
{1 Using with Ocsigen Server: ocsipersist-sqlite-config} | ||
|
||
If you are using Ocsipersist with Ocsigen Server with a configuration file, | ||
install package [ocsipersist-sqlite-config] and | ||
use the following configuration tags. | ||
All sub-tags of the [extension] tag are optional. | ||
|
||
{[ | ||
<extension findlib-package="ocsipersist-sqlite-config"> | ||
<database file="data/ocsidb"/> | ||
</extension> | ||
]} | ||
If you want to configure Ocsipersist-sqlite from Ocsigen Server's | ||
configuration file, use package | ||
{{:../ocsipersist-sqlite-config/Ocsipersist_config/index.html}ocsipersist-sqlite-config}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(** | ||
If you are using the SQLite backend of Ocsipersist with Ocsigen Server | ||
with a configuration file, install package [ocsipersist-sqlite-config] and | ||
use the following configuration tags. | ||
All sub-tags of the [extension] tag are optional. | ||
{@xml[ | ||
<extension findlib-package="ocsipersist-sqlite-config"> | ||
<database file="data/ocsidb"/> | ||
</extension> | ||
]} | ||
*) |