From 43335352ce9350ee3696ef90db962170469e6a49 Mon Sep 17 00:00:00 2001 From: Eugene Tolmachev Date: Tue, 2 May 2017 10:18:26 -0400 Subject: [PATCH] pleasing the windows gods --- README.md | 4 +++- docs/content/index.fsx | 4 +++- docs/content/tutorial.fsx | 4 ++++ src/FsCassy.Tests/App.config | 30 ++++++++++++++++++++++++++ src/FsCassy.Tests/FsCassy.Tests.fsproj | 10 +++++---- src/FsCassy/FsCassy.fsproj | 7 ++++-- 6 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 src/FsCassy.Tests/App.config diff --git a/README.md b/README.md index 7d2ebf0..a0d759d 100755 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ FsCassy offers several improvements over the official .NET driver: - a composable DSL for statements, - a Pretty printer, Cassandra and InMem statement interpreters -The pluggbale interpreter extends the reach of unit-testing into the code that would not otherwise be testable in isolation. +The pluggable interpreter extends the reach of unit-testing into the code that would not otherwise be testable in isolation. ======= + +Some assembly required: please see the tests for examples of the interpreter construction. \ No newline at end of file diff --git a/docs/content/index.fsx b/docs/content/index.fsx index 4ac8b13..1c74c6b 100755 --- a/docs/content/index.fsx +++ b/docs/content/index.fsx @@ -63,7 +63,6 @@ Samples & documentation Contributing and copyright -------------------------- - The project is hosted on [GitHub][gh] where you can [report issues][issues], fork the project and submit pull requests. @@ -76,4 +75,7 @@ redistribution for both commercial and non-commercial purposes. For more informa [issues]: https://github.com/Prolucid/FsCassy/issues [readme]: https://github.com/Prolucid/FsCassy/blob/master/README.md [license]: https://github.com/Prolucid/FsCassy/blob/master/LICENSE.md + + +Copyright 2017 Prolucid Technologies Inc *) diff --git a/docs/content/tutorial.fsx b/docs/content/tutorial.fsx index 2b2d3dd..1c468e2 100755 --- a/docs/content/tutorial.fsx +++ b/docs/content/tutorial.fsx @@ -24,9 +24,11 @@ The Statement API directly reflects Cassandra operations, here are some of the e *) #r "FsCassy.dll" +#r "Cassandra.dll" open FsCassy type SomeMappedTable = {x:int} + let exampleWhere : Statement = table >>= where (Quote.X(fun x -> x.x = 0)) @@ -110,6 +112,7 @@ Cassandra driver and FsCassy API ======================== FsCassy exposes a small set of functions that make it easier to construct the relevant parts, thier use is completely optional: + - Cluster connectivity - Session construction and parametrization - LINQ Table construction @@ -134,6 +137,7 @@ let xs = [ {x = 1} {x = 5} {x = 0} {x = 6} ] + let ``InMem reads``() = table >>= read |> InMem.Interpreter.execute (ResizeArray xs) diff --git a/src/FsCassy.Tests/App.config b/src/FsCassy.Tests/App.config new file mode 100644 index 0000000..12f40f3 --- /dev/null +++ b/src/FsCassy.Tests/App.config @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + True + + + + + True + + + + + True + + + + + \ No newline at end of file diff --git a/src/FsCassy.Tests/FsCassy.Tests.fsproj b/src/FsCassy.Tests/FsCassy.Tests.fsproj index 5968efb..785e74a 100644 --- a/src/FsCassy.Tests/FsCassy.Tests.fsproj +++ b/src/FsCassy.Tests/FsCassy.Tests.fsproj @@ -9,6 +9,7 @@ FsCassy.Tests FsCassy.Tests v4.6 + 4.4.1.0 FsCassy.Tests ..\ 79ea8a22 @@ -31,19 +32,20 @@ ..\..\build_output\Tests TRACE 3 - bin\Release\FsCassy.Tests.XML - + + True + - + @@ -55,7 +57,7 @@ 11 - +