Skip to content

Commit

Permalink
Force one of the backend to be installed by opam
Browse files Browse the repository at this point in the history
Reverse dependency ocsipersist and backend
  • Loading branch information
balat committed May 22, 2024
1 parent c645302 commit b14ede1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion ocsipersist-dbm.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ depends: [
"dune" {>= "2.9"}
"lwt" {>= "4.2.0"}
"lwt_log"
"ocsipersist" {>= "2.0.0" & < "2.1.0"}
"ocsipersist-lib" {>= "2.0.0" & < "2.1.0"}
"dbm"
]
1 change: 0 additions & 1 deletion ocsipersist-pgsql.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ depends: [
"dune" {>= "2.9"}
"lwt" {>= "4.2.0"}
"lwt_log"
"ocsipersist" {>= "2.0.0" & < "2.1.0"}
"ocsipersist-lib" {>= "2.0.0" & < "2.1.0"}
"pgocaml"
]
1 change: 0 additions & 1 deletion ocsipersist-sqlite.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ depends: [
"dune" {>= "2.9"}
"lwt" {>= "4.2.0"}
"lwt_log"
"ocsipersist" {>= "2.0.0" & < "2.1.0"}
"ocsipersist-lib" {>= "2.0.0" & < "2.1.0"}
"sqlite3"
]
1 change: 1 addition & 0 deletions ocsipersist.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depends: [
"dune" {>= "2.9"}
"lwt" {>= "4.2.0"}
"ocsipersist-lib" {>= "2.0.0" & < "3.0.0"}
("ocsipersist-sqlite" | "ocsipersist-pgsql" | "ocsipersist-dbm")
]
conflicts: [
"ocsipersist-dbm" {< "2.0.0" | >= "2.1.0"}
Expand Down
4 changes: 2 additions & 2 deletions src/dbm/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

(library
(name ocsipersist_dbm)
(public_name ocsipersist-dbm)
(public_name ocsipersist.dbm)
(implements ocsipersist)
(modules ocsipersist ocsipersist_settings)
(modules :standard \ ocsipersist_config ocsidbm ocsidbmtypes)
(libraries dbm lwt_log ocsipersist_dbmtypes ocsipersist_lib))

(library
Expand Down
2 changes: 1 addition & 1 deletion src/dbm/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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">
<extension findlib-package="ocsipersist-dbm-config">
<delayloading val="false"/>
<store dir="store"/>
<ocsidbm name="ocsidbm"/>
Expand Down
4 changes: 2 additions & 2 deletions src/pgsql/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(library
(name ocsipersist_pgsql)
(public_name ocsipersist-pgsql)
(public_name ocsipersist.pgsql)
(implements ocsipersist)
(modules ocsipersist ocsipersist_settings)
(modules :standard \ ocsipersist_config)
(libraries pgocaml lwt_log ocsipersist_lib))

(library
Expand Down
4 changes: 2 additions & 2 deletions src/pgsql/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ All attributes of the [database] tag are optional.

One can either define a host to connect to:
{[
<extension findlib-package="ocsipersist.pgsql.config">
<extension findlib-package="ocsipersist-pgsql-config">
<database
host="localhost"
port="3000"
Expand All @@ -36,7 +36,7 @@ One can either define a host to connect to:

Or a UNIX domain socket:
{[
<extension findlib-package="ocsipersist.pgsql.config">
<extension findlib-package="ocsipersist-pgsql-config">
<database
unix_domain_socket_dir = "pgsql_socket"
user="ocsipersist"
Expand Down
4 changes: 2 additions & 2 deletions src/sqlite/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(library
(name ocsipersist_sqlite)
(public_name ocsipersist-sqlite)
(public_name ocsipersist.sqlite)
(implements ocsipersist)
(modules ocsipersist ocsipersist_settings)
(modules :standard \ ocsipersist_config)
(libraries sqlite3 lwt_log ocsipersist_lib))

(library
Expand Down
2 changes: 1 addition & 1 deletion src/sqlite/index.mld
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use the following configuration tags.
All sub-tags of the [extension] tag are optional.

{[
<extension findlib-package="ocsipersist.sqlite.config">
<extension findlib-package="ocsipersist-sqlite-config">
<database file="data/ocsidb"/>
</extension>
]}

0 comments on commit b14ede1

Please sign in to comment.