Skip to content

DbaClientX is a small PowerShell module that allows running queries against Sql Server

Notifications You must be signed in to change notification settings

EvotecIT/DbaClientX

Repository files navigation

DbaClientX

DbaClientX is a lightweight, multi‑provider database client for .NET and PowerShell. It offers:

  • Providers: SQL Server, PostgreSQL, MySQL, SQLite, Oracle
  • Sync/async APIs with cancellation, retries, and transactions
  • A small SQL query builder with dialect support and parameterization
  • PowerShell cmdlets for quick scripting

Repo structure

  • DbaClientX.Core – shared base (DatabaseClientBase), retry logic, query builder
  • DbaClientX.SqlServer / PostgreSql / MySql / SQLite / Oracle – providers
  • DbaClientX.PowerShell – PowerShell cmdlets
  • DbaClientX.Tests – xUnit unit tests
  • Module – Pester tests and module build script

Build & test

dotnet restore DbaClientX.sln
dotnet build DbaClientX.sln -c Release
dotnet test DbaClientX.sln -c Release --framework net8.0

Notes

  • The solution enables nullable reference types and .NET analyzers via Directory.Build.props.
  • SourceLink is enabled for all projects for better debugging into packages.
  • SQL Server provider uses Microsoft.Data.SqlClient.

About

DbaClientX is a small PowerShell module that allows running queries against Sql Server

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

  •