Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* generate opam file via dune also set bisect dependency in the same manner as we do for pgx. This aligns the project setup for pgx and mssql. * fix circleci * use proper version constraint
- Loading branch information
Anurag Soni
committed
May 6, 2020
1 parent
7103ecd
commit c5bf09b
Showing
5 changed files
with
88 additions
and
21 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,3 +1,50 @@ | ||
(lang dune 1.11) | ||
|
||
(using fmt 1.1) | ||
|
||
(name mssql) | ||
|
||
(generate_opam_files true) | ||
|
||
(license "Apache-2.0") | ||
|
||
(maintainers "Arena Developers <silver-snakes@arena.io>") | ||
|
||
(authors "Arena Developers <silver-snakes@arena.io>") | ||
|
||
(source | ||
(github arenadotio/ocaml-mssql)) | ||
|
||
(package | ||
(name mssql) | ||
(synopsis "Async SQL Server client using FreeTDS") | ||
(description | ||
"Mssql wraps FreeTDS in a nicer and safer interface, with support for parameterized queries, thread-based async IO, and a thread pool.") | ||
(depends | ||
(alcotest | ||
(and | ||
:with-test | ||
(>= 1.0.1))) | ||
(alcotest-async | ||
(and | ||
:with-test | ||
(>= 1.0.1))) | ||
async | ||
bignum | ||
ppx_jane | ||
(iter | ||
(>= 1.2)) | ||
(ocaml | ||
(>= 4.06.1)) | ||
ounit | ||
logs | ||
(text | ||
(>= 0.8.0)) | ||
(freetds | ||
(>= 0.7)) | ||
(bisect_ppx | ||
(and | ||
:dev | ||
(>= 2.0.0))) | ||
(dune | ||
(>= 1.11)))) |
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,9 +1,19 @@ | ||
(* -*- tuareg -*- *) | ||
|
||
let preprocess = | ||
match Sys.getenv "BISECT_ENABLE" with | ||
| "yes" -> "bisect_ppx" | ||
| _ -> "" | ||
| exception Not_found -> "" | ||
|
||
let () = Jbuild_plugin.V1.send @@ {| | ||
(library | ||
(public_name mssql) | ||
(libraries core async freetds iter bignum logs oUnit text) | ||
(preprocess | ||
(pps ppx_jane bisect_ppx --conditional))) | ||
(pps ppx_jane |} ^ preprocess ^ {|))) | ||
|
||
(ocamllex query_lexer) | ||
|
||
(ocamlyacc query_parser) | ||
|} |