Bump version to 3
- Add description to each project - Add .sh files to test and package
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<PackageReleaseNotes>Adds Field type for by-field operations (BREAKING from rc-1); adds RemoveFields* functions</PackageReleaseNotes>
|
||||
<Description>Use SQLite as a document database</Description>
|
||||
<PackageReleaseNotes>Overall v3 release; initial release supporting SQLite</PackageReleaseNotes>
|
||||
<PackageTags>JSON Document SQLite</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ Retrieve all customers:
|
||||
```csharp
|
||||
// C#; parameter is table name
|
||||
// Find.All type signature is Func<string, Task<List<TDoc>>>
|
||||
var customers = await Find.All("customer");
|
||||
var customers = await Find.All<Customer>("customer");
|
||||
```
|
||||
|
||||
```fsharp
|
||||
@@ -72,28 +72,28 @@ Count customers in Atlanta:
|
||||
|
||||
```csharp
|
||||
// C#; parameters are table name, field, operator, and value
|
||||
// Count.ByField type signature is Func<string, string, Op, object, Task<long>>
|
||||
var customerCount = await Count.ByField("customer", "City", Op.EQ, "Atlanta");
|
||||
// Count.ByField type signature is Func<string, Field, Task<long>>
|
||||
var customerCount = await Count.ByField("customer", Field.EQ("City", "Atlanta"));
|
||||
```
|
||||
|
||||
```fsharp
|
||||
// F#
|
||||
// Count.byField type signature is string -> string -> Op -> obj -> Task<int64>
|
||||
let! customerCount = Count.byField "customer" "City" EQ "Atlanta"
|
||||
// Count.byField type signature is string -> Field -> Task<int64>
|
||||
let! customerCount = Count.byField "customer" (Field.EQ "City" "Atlanta")
|
||||
```
|
||||
|
||||
Delete customers in Chicago: _(no offense, Second City; just an example...)_
|
||||
|
||||
```csharp
|
||||
// C#; parameters are same as above, except return is void
|
||||
// Delete.ByField type signature is Func<string, string, Op, object, Task>
|
||||
await Delete.ByField("customer", "City", Op.EQ, "Chicago");
|
||||
// Delete.ByField type signature is Func<string, Field, Task>
|
||||
await Delete.ByField("customer", Field.EQ("City", "Chicago"));
|
||||
```
|
||||
|
||||
```fsharp
|
||||
// F#
|
||||
// Delete.byField type signature is string -> string -> Op -> obj -> Task<unit>
|
||||
do! Delete.byField "customer" "City" EQ "Chicago"
|
||||
do! Delete.byField "customer" (Field.EQ "City" "Chicago")
|
||||
```
|
||||
|
||||
## More Information
|
||||
|
||||
Reference in New Issue
Block a user