Webql 1.0.0-prerelease.1

This is a prerelease version of Webql.
dotnet add package Webql --version 1.0.0-prerelease.1                
NuGet\Install-Package Webql -Version 1.0.0-prerelease.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Webql" Version="1.0.0-prerelease.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Webql --version 1.0.0-prerelease.1                
#r "nuget: Webql, 1.0.0-prerelease.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Webql as a Cake Addin
#addin nuget:?package=Webql&version=1.0.0-prerelease.1&prerelease

// Install Webql as a Cake Tool
#tool nuget:?package=Webql&version=1.0.0-prerelease.1&prerelease                

WebQL v3.0.0 - Language Documentation

Introduction

WebQL is a powerful query language designed to be compiled into LINQ expressions, allowing seamless integration with LINQ providers in C#. This documentation will guide you through the usage of WebQL, covering its syntax, semantics, operators, and providing comprehensive examples to get you started.

Table of Contents

// fix this markdown reference

  1. Getting Started
  2. Basic Syntax
  3. Literals
  4. Expressions
    1. Literal Expressions
    2. Reference Expressions
    3. Scope Access Expressions
    4. Block Expressions
  5. Operators
    1. Arithmetic Operators
    2. Relational Operators
    3. Logical Operators
    4. String Relational Operators
    5. Collection Manipulation Operators
    6. Collection Aggregation Operators
  6. Examples

Getting Started

Importing the Library

To start using WebQL in your project, you need to integrate the WebQL compiler. This compiler is available under the namespace Webql.

Import Statement
using Webql;

Using the Compiler

Basic Setup

Here is a simple example to get you started:

using Webql;

namespace MyProject;

public static void Program 
{
    public static void Main()
    {
        var compiler = new WebqlCompiler();
        //...
    }
}

Configuring the Compiler For more advanced usage, you can customize the compiler settings by providing an instance of WebqlCompilerSettings. This allows you to tailor the compiler behavior to suit your specific needs.

using Webql;

namespace MyProject;

public static void Program 
{
    public static void Main()
    {
        var settings = new WebqlCompilerSettings(
            // Configure your options here...
        );

        var compiler = new WebqlCompiler(settings);
        //...
    }
}

Compiling a Query

Once you have set up the compiler, you can start writing and compiling queries. Below is an example of how to compile a WebQL query into a LINQ Expression:

public static void Main(string[] args)
{
    var compiler = new WebqlCompiler();
    
    var query = "...";
    var elementType = typeof(...);

    var expression = compiler.Compile(query, elementType);

    //...
}

Writing Queries

Before you start writing queries its important to understand some key points about the language semantics. A WebQL query can be thought of as a function that takes a data collection and returns some result.

Example:
public TResult CreateQuery(IQueryable<TElement> source)
{
    ...
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0-prerelease.1 50 8/1/2024