Palm.SurrealDB.Net.Analyzers 0.2.1

dotnet add package Palm.SurrealDB.Net.Analyzers --version 0.2.1
                    
NuGet\Install-Package Palm.SurrealDB.Net.Analyzers -Version 0.2.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="Palm.SurrealDB.Net.Analyzers" Version="0.2.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Palm.SurrealDB.Net.Analyzers" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Palm.SurrealDB.Net.Analyzers">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Palm.SurrealDB.Net.Analyzers --version 0.2.1
                    
#r "nuget: Palm.SurrealDB.Net.Analyzers, 0.2.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.
#:package Palm.SurrealDB.Net.Analyzers@0.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Palm.SurrealDB.Net.Analyzers&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Palm.SurrealDB.Net.Analyzers&version=0.2.1
                    
Install as a Cake Tool

Palm.SurrealDB.Net.Analyzers

Roslyn analyzers and code fixes for the Palm.SurrealDB client and LINQ provider — nine rules in the PSDB001–PSDB009 band:

Rule What it catches
PSDB001/PSDB002 a LINQ operator or expression the translator cannot express — an error at
build time rather than a SurqlTranslationException at run time
PSDB003 blocking enumeration of a query that has an async terminal (with a code fix)
PSDB004 a query issued inside a loop — the N+1 shape
PSDB005 navigation access with no FETCH (with a code fix)
PSDB006 a malformed record-id literal
PSDB007/PSDB008 schema and index problems, opt-in via a surrealdb.schema.surql
AdditionalFiles entry
PSDB009 a schema file that is present but unparsable — which must not silently disable the
two rules that read it

Part of the Palm.SurrealDB ecosystem for SurrealDB 3.x.

Installation

dotnet add package Palm.SurrealDB.Net.Analyzers

Targets net10.0 (netstandard2.0 — the Roslyn host requirement). The package is proprietary and sets PackageRequireLicenseAcceptance, so NuGet prompts before installing — see LICENSE. Nothing is on NuGet.org until the first release runs; see docs/RELEASING.md.

Provides

  • Analyzers and code fixes — there is no API to call

Notes

Every query rule is gated on proving the chain actually reaches Query<T>(ISurrealClient). Where origin cannot be established the rule stays silent: a false negative costs a missed warning, and a false positive is how analyzers get switched off.

Targets netstandard2.0 and packs as a DevelopmentDependency with nothing under lib/, so it never becomes a transitive runtime dependency of your consumers.

Documentation

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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
0.2.1 108 9/5/2026
0.2.0 104 9/3/2026