question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There are not much embedded databases on .net, especially with F# data structures support. So it would be nice to have such option in LiteDB. The main problem is storing F# specific types, such as DU, records, collections, options. I created simple POC for (de)serialization DU types, it works, but extending BsonMapper is not very convenient. First of all I’d like to ask: “Are you interested in it?” . And if the answer is yes, what is the best way to add F#-specific stuff for LiteDB? I can add new project in main repo but ship nuget package separately. Or maintain f# project in separate repo. Anyway we should think about how it would be integrated, I mean how to extend BsonMapper. In my POC I inherited BsonMapper and override Serialize and Deserialize methods, but I’m not sure that it’s the best way. Maybe it would be better to create custom EntityMapper.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
Zaid-Ajajcommented, Oct 3, 2017

Hello @p69, I saw this thread a couple of days ago and thought it would be nice to have an F# version of LiteDB. So I started working on the library LiteDB.FSharp. It already supports a lot of kinds of conversions (records, maps, generic discriminated unions) and all of the special bson properties ($date, $binary, $oid, $longNumber, $decimalNumber)

Take a look and contribute (tests, samples) if you are interested 😄

0reactions
p69commented, Oct 4, 2017

@Zaid-Ajaj Ha, cool 👍 Thank you very much! I’ve already taken a quick a look at it today in the morning. Looks good 👍 So this thread can be closed. F# community strong!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get support for your F‑Secure products
Welcome to support. Browse our articles, ask our community, or reach out to an F‑Secure expert for help or advice. Total Internet Security...
Read more >
ROG Strix B650E-F Gaming WiFi motherboard - ASUS
The ROG Strix B650E-F Gaming WiFi takes you to the future with 12 + 2 power stages, hyperspeed DDR5 memory, and next-gen PCIe®...
Read more >
ROG Strix Z790-F Gaming WiFi motherboard - ASUS
The ROG Strix Z790-F Gaming WiFi supercharges builds with its robust 16-stage ... a PCIe® 5.0 x16 slot, USB 3.2 Gen 2x2 support,...
Read more >
B450M Pro4-F
B450M Pro4-F. Supports AMD AM4 Socket Ryzen™ 2000, 3000, 4000 G-Series, 5000 and 5000 G-Series Desktop Processors; Supports DDR4 3200+ (OC); 1 PCIe...
Read more >
C & F SEASONAL SUPPORT — Woodstock Herbal Products
from $19.99. Organic and natural herb that offer superior seasonal support. 1 Oz Product ID: 31008 2 Oz Product ID: 31009
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found