I've been working on a few new libraries lately that focus on providing functional wrappers around various NoSQL options.
FSharpCouch
FSharpCouch is something that I wrote about a little over two years ago. At the time, it was more of an educational exercise, but I have since revised it and found aspects of it to be useful. This is now available on NuGet as package ID FSharpCouch. Here's an example:
CODE:
type Person = {
FirstName : string
LastName : string
}
let couchUrl = "http://localhost:5984"
let databaseName = "people"
let result = { FirstName = "John"; LastName = "Doe" }
|> createDocument couchUrl databaseName
let createdPerson = getDocument
couchUrl databaseName result.idYou can find additional examples and the full source at https://github.com/dmohl/FSharpCouch.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/301743/viewspace-735444/
,如需转载,请注明出处,否则将追究法律责任。