magic.lambda.cql
15.9.0
dotnet add package magic.lambda.cql --version 15.9.0
NuGet\Install-Package magic.lambda.cql -Version 15.9.0
<PackageReference Include="magic.lambda.cql" Version="15.9.0" />
paket add magic.lambda.cql --version 15.9.0
#r "nuget: magic.lambda.cql, 15.9.0"
// Install magic.lambda.cql as a Cake Addin
#addin nuget:?package=magic.lambda.cql&version=15.9.0
// Install magic.lambda.cql as a Cake Tool
#tool nuget:?package=magic.lambda.cql&version=15.9.0
CQL data adapters for Magic and Hyperlambda
This project provides Magic and Hyperlambda with CQL data adapters, allowing you to perform CRUD operations towards for instance Cassandra or ScyllaDB.
Slots
The project contains the following slots.
- [cql.connect] - Creates a session towards a CQL cluster
- [cql.execute] - Executes some CQL statement towards an open session and returns the result to caller
The basic idea of the slots are to allow for things such as follows.
cql.connect:[generic|space]
cql.select:"select * from table where column = 'foo/bar'"
Where the generic
parts above is a reference to a cluster you'll have to configure in your "appsettings.json",
while the space
parts above is a keyspace within that cluster. In such a regard the slots resembles the generic
RDBMS slots in usage, except of course it opens a connection towards a NoSQL database such as Cassandra or ScyllaDB,
and returns the result of executing your SQL towards a keyspace within that cluster. To use parameters in your CQL
you can use something resembling the following.
cql.connect:[generic|space]
cql.select:"select * from table where column1 = :foo and column2 = :bar"
foo:bar
bar:x:@.arguments/*/some-arg
The way arguments are resolved is that in the above example :foo
becomes a reference to the [foo]
node's value, and/or expression's value.
Configuration
The primary configuration for the project to apply for your "appsettings.json" file can be found below.
{
"magic": {
"cql": {
"generic": {
"host": "127.0.0.1"
}
}
}
}
The above configures the adapter to use 127.0.0.1
as the host for your generic
contact point or cluster.
You can add as many cluster connection points as you want to, and reference these using their unique names.
Project website
The source code for this repository can be found at github.com/polterguy/magic.lambda.cql, and you can provide feedback, provide bug reports, etc at the same place.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- CassandraCSharpDriver (>= 3.17.1)
- magic.node.extensions (>= 15.9.0)
- magic.signals (>= 15.9.0)
- Microsoft.Extensions.Configuration (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
15.9.0 | 43 | 3/24/2023 |
15.8.2 | 51 | 3/20/2023 |
15.7.0 | 81 | 3/6/2023 |
15.5.0 | 188 | 1/28/2023 |
15.2.0 | 275 | 1/18/2023 |
15.1.0 | 615 | 12/28/2022 |
14.5.7 | 315 | 12/13/2022 |
14.5.5 | 374 | 12/6/2022 |
14.5.1 | 290 | 11/23/2022 |
14.5.0 | 252 | 11/18/2022 |
14.4.5 | 336 | 10/22/2022 |
14.4.1 | 270 | 10/22/2022 |
14.4.0 | 291 | 10/17/2022 |
14.3.1 | 458 | 9/12/2022 |
14.3.0 | 266 | 9/10/2022 |
14.1.3 | 528 | 8/7/2022 |
14.1.2 | 278 | 8/7/2022 |
14.1.1 | 279 | 8/7/2022 |
14.0.14 | 325 | 7/26/2022 |
14.0.12 | 320 | 7/24/2022 |
14.0.11 | 297 | 7/23/2022 |
14.0.10 | 299 | 7/23/2022 |
14.0.9 | 284 | 7/23/2022 |
14.0.8 | 375 | 7/17/2022 |
14.0.5 | 426 | 7/11/2022 |
14.0.4 | 509 | 7/6/2022 |
14.0.3 | 450 | 7/2/2022 |
14.0.2 | 407 | 7/2/2022 |
14.0.0 | 534 | 6/25/2022 |
13.4.0 | 1,461 | 5/31/2022 |
13.3.4 | 1,012 | 5/9/2022 |
13.3.0 | 639 | 5/1/2022 |
13.2.0 | 806 | 4/21/2022 |
13.1.0 | 692 | 4/7/2022 |
13.0.0 | 460 | 4/5/2022 |
11.0.5 | 972 | 3/2/2022 |
11.0.4 | 491 | 2/22/2022 |
11.0.3 | 505 | 2/9/2022 |
11.0.2 | 524 | 2/6/2022 |
11.0.1 | 507 | 2/5/2022 |
10.0.21 | 489 | 1/28/2022 |
10.0.20 | 484 | 1/27/2022 |
10.0.19 | 509 | 1/23/2022 |