package avro
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Runtime library for encoding/decoding Avro
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.1.tar.gz
md5=729b33e6f19b3065fe2e3444c0981d73
sha512=671049a5b471323d87bfa7fd85dc4d1a5ba606c035110e2170b292f32d90d37f093ba91eb0234fbf73435c4c6c3a9a7381fb1a4e450101fa10ff5dea1e3e62a8
Description
Added to opam-repository:
README
Avro 
avrois the runtime library, should be reasonably small (depends only oncamlzip)avro-compilercan read a json schema and generate code from it
See some examples from the tests/ directory:
tests/records.jsonandtests/records_test.mlthat use it. you can see what the schema compiler will produce:$ ./compiler.sh ./tests/records.json (* generated by avro-compiler *) open Avro module Str_map = Map.Make(String) let schema = "{\"type\":\"record\",\"name\":\"test\",\"fields\":[{\"type\":\"long\",\"name\":\"a\"},{ \"type\":\"string\",\"name\":\"b\"}]}" type nonrec t = { a: int64; b: string; } let read (input:Input.t) : t = (let a = Input.read_int64 input in let b = Input.read_string input in { a;b }) let write (out:Output.t) (self:t) : unit = ((let self = self.a in Output.write_int64 out self); (let self = self.b in Output.write_string out self); )- similarly for
tests/employee.jsonandtests/employee_test.mlthat use it
License
MIT license.
Dev Dependencies (2)
-
avro-compiler
with-test -
odoc
with-doc
Optional Dependencies
None
Used by (1)
Conflicts
None
Build status
Results of building avro with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page