-
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.
Merge pull request #4 from ocsigen/static
Configuration without config file
- Loading branch information
Showing
34 changed files
with
704 additions
and
391 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-dbm-config" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Ocsigen Server configuration file extension for ocsipersist-dbm" | ||
description: "Load this package from Ocsigen Server's configuration file if you want to use the DBM storage backend." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
dev-repo: "git+https://github.com/ocsigen/ocsipersist.git" | ||
build: [ "dune" "build" "-p" name "-j" jobs ] | ||
|
||
depends: [ | ||
"dune" {>= "2.9"} | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-dbm" {>= "2.0.0" & < "2.1.0"} | ||
] |
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,11 +1,11 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-dbm" | ||
version: "1.1.0" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Persistent key/value storage (for Ocsigen) using DBM" | ||
description: "This library provides a DBM backend for the unified key/value storage frontend as defined in the ocsipersist package. Ocsipersist is used pervasively in Eliom/Ocsigen to handle sessions and references. It can be used as an extension for ocsigenserver or as a library." | ||
synopsis: "Persistent key/value storage for OCaml using DBM" | ||
description: "This library provides a DBM backend for the unified key/value storage frontend as defined in the ocsipersist package." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
|
@@ -16,8 +16,6 @@ depends: [ | |
"dune" {>= "2.9"} | ||
"lwt" {>= "4.2.0"} | ||
"lwt_log" | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-lib" {>= "1.1.0" & < "1.2.0"} | ||
"ocsipersist" {>= "2.0.0" & < "2.1.0"} | ||
"dbm" | ||
] |
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,10 +1,10 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-lib" | ||
version: "1.1.0" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Persistent key/value storage (for Ocsigen) - support library" | ||
synopsis: "Persistent key/value storage for OCaml - support library" | ||
description: "This library defines signatures and auxiliary tools for defining backends for the Ocsipersist frontent. Ocsipersist is used pervasively in Eliom/Ocsigen to handle sessions and references. It can be used as an extension for ocsigenserver or as a library. Implementations of the following backends currently exist: DBM, PostgreSQL, SQLite." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
|
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,20 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-pgsql-config" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Ocsigen Server configuration file extension for ocsipersist-pgsql" | ||
description: "Load this package from Ocsigen Server's configuration file if you want to use the PostgreSQL storage backend." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
dev-repo: "git+https://github.com/ocsigen/ocsipersist.git" | ||
build: [ "dune" "build" "-p" name "-j" jobs ] | ||
|
||
depends: [ | ||
"dune" {>= "2.9"} | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-pgsql" {>= "2.0.0" & < "2.1.0"} | ||
] |
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,11 +1,11 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-pgsql" | ||
version: "1.1.0" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Persistent key/value storage (for Ocsigen) using PostgreSQL" | ||
description: "This library provides a PostgreSQL backend for the unified key/value storage frontend as defined in the ocsipersist package. Ocsipersist is used pervasively in Eliom/Ocsigen to handle sessions and references. It can be used as an extension for ocsigenserver or as a library." | ||
synopsis: "Persistent key/value storage for OCaml using PostgreSQL" | ||
description: "This library provides a PostgreSQL backend for the unified key/value storage frontend as defined in the ocsipersist package." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
|
@@ -16,8 +16,6 @@ depends: [ | |
"dune" {>= "2.9"} | ||
"lwt" {>= "4.2.0"} | ||
"lwt_log" | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-lib" {>= "1.1.0" & < "1.2.0"} | ||
"ocsipersist" {>= "2.0.0" & < "2.1.0"} | ||
"pgocaml" | ||
] |
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,20 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-sqlite-config" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Ocsigen Server configuration file extension for ocsipersist-sqlite" | ||
description: "Load this package from Ocsigen Server's configuration file if you want to use the SQLite storage backend." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
dev-repo: "git+https://github.com/ocsigen/ocsipersist.git" | ||
build: [ "dune" "build" "-p" name "-j" jobs ] | ||
|
||
depends: [ | ||
"dune" {>= "2.9"} | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-sqlite" {>= "2.0.0" & < "2.1.0"} | ||
] |
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,11 +1,11 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist-sqlite" | ||
version: "1.1.0" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Persistent key/value storage (for Ocsigen) using SQLite" | ||
description: "This library provides a SQLite backend for the unified key/value storage frontend as defined in the ocsipersist package. Ocsipersist is used pervasively in Eliom/Ocsigen to handle sessions and references. It can be used as an extension for ocsigenserver or as a library." | ||
synopsis: "Persistent key/value storage for OCaml using SQLite" | ||
description: "This library provides a SQLite backend for the unified key/value storage frontend as defined in the ocsipersist package." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
|
@@ -16,8 +16,6 @@ depends: [ | |
"dune" {>= "2.9"} | ||
"lwt" {>= "4.2.0"} | ||
"lwt_log" | ||
"xml-light" | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-lib" {>= "1.1.0" & < "1.2.0"} | ||
"ocsipersist" {>= "2.0.0" & < "2.1.0"} | ||
"sqlite3" | ||
] |
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,11 +1,11 @@ | ||
opam-version: "2.0" | ||
name: "ocsipersist" | ||
version: "1.1.0" | ||
version: "2.0.0" | ||
authors: "The Ocsigen team <[email protected]>" | ||
maintainer: "Jan Rochel <[email protected]>" | ||
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception" | ||
synopsis: "Persistent key/value storage (for Ocsigen) using multiple backends" | ||
description: "This is an virtual library defining a unified frontend for a number of key/value storage implementations. Ocsipersist is used pervasively in Eliom/Ocsigen to handle sessions and references. It can be used as an extension for ocsigenserver or as a library. Implementations of the following backends currently exist: DBM, PostgreSQL, SQLite." | ||
synopsis: "Persistent key-value storage for OCaml using multiple backends" | ||
description: "This is an virtual library defining a unified frontend for a number of key-value storage implementations. Implementations of the following backends currently exist: DBM, PostgreSQL, SQLite." | ||
|
||
homepage: "https://github.com/ocsigen/ocsipersist" | ||
bug-reports: "https://github.com/ocsigen/ocsipersist/issues" | ||
|
@@ -15,18 +15,10 @@ build: [ "dune" "build" "-p" name "-j" jobs ] | |
depends: [ | ||
"dune" {>= "2.9"} | ||
"lwt" {>= "4.2.0"} | ||
"ocsigenserver" {>= "3.0.0"} | ||
"ocsipersist-lib" {>= "1.1.0" & < "1.2.0"} | ||
"ocsipersist-lib" {>= "2.0.0" & < "3.0.0"} | ||
] | ||
|
||
depopts: [ | ||
"ocsipersist-dbm" | ||
"ocsipersist-pgsql" | ||
"ocsipersist-sqlite" | ||
] | ||
|
||
conflicts: [ | ||
"ocsipersist-dbm" {< "1.1.0" | >= "1.2.0"} | ||
"ocsipersist-pgsql" {< "1.1.0" | >= "1.2.0"} | ||
"ocsipersist-sqlite" {< "1.1.0" | >= "1.2.0"} | ||
"ocsipersist-dbm" {< "2.0.0" | >= "2.1.0"} | ||
"ocsipersist-pgsql" {< "2.0.0" | >= "2.1.0"} | ||
"ocsipersist-sqlite" {< "2.0.0" | >= "2.1.0"} | ||
] |
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,14 +1,19 @@ | ||
{0 ocsipersist-dbm} | ||
|
||
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"> | ||
<delayloading val="false"/> | ||
<store dir="store"/> | ||
<ocsidbm name="ocsidbm"/> | ||
</extension> | ||
]} | ||
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} | ||
|
||
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} | ||
|
||
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
Oops, something went wrong.