https://github.com/nicoviii/typedpersistence
A library for F# which handles basic persistence stuff in a typesafe way
https://github.com/nicoviii/typedpersistence
fsharp persistence typesafety
Last synced: 11 months ago
JSON representation
A library for F# which handles basic persistence stuff in a typesafe way
- Host: GitHub
- URL: https://github.com/nicoviii/typedpersistence
- Owner: NicoVIII
- License: mit
- Created: 2019-10-05T09:50:22.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T19:32:31.000Z (about 2 years ago)
- Last Synced: 2025-02-16T11:17:43.217Z (over 1 year ago)
- Topics: fsharp, persistence, typesafety
- Language: F#
- Homepage:
- Size: 2.96 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TypedPersistence
[](https://github.com/NicoVIII/TypedPersistence/releases)
[](https://github.com/NicoVIII/TypedPersistence/commits)
[](https://www.nuget.org/packages/NicoVIII.TypedPersistence.Core)
[](https://www.nuget.org/packages/NicoVIII.TypedPersistence.Json)
This project aims at providing a typesafe way to load and safe from and to a persistent local database.
It should be possible to define records as definition for the structure of the data and load and save different versions of data.
**Disclaimer**
I'm not sure where I want to go with this. Current implementation(s) are using reflection which isn't very nice. But without a convenient way for metaprogramming and code generation on compile time (Myraid sadly adds unnecessary dependencies to a project which can cause problems), I couldn't find a better way...
Also I had a look at the Avro format recently and thought about providing partial reading and appending operations but this is completely different to the current approach. So yeah, much to figure out here.