go.database.sql.driver 1.23.1.6

dotnet add package go.database.sql.driver --version 1.23.1.6
                    
NuGet\Install-Package go.database.sql.driver -Version 1.23.1.6
                    
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="go.database.sql.driver" Version="1.23.1.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="go.database.sql.driver" Version="1.23.1.6" />
                    
Directory.Packages.props
<PackageReference Include="go.database.sql.driver" />
                    
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 go.database.sql.driver --version 1.23.1.6
                    
#r "nuget: go.database.sql.driver, 1.23.1.6"
                    
#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 go.database.sql.driver@1.23.1.6
                    
#: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=go.database.sql.driver&version=1.23.1.6
                    
Install as a Cake Addin
#tool nuget:?package=go.database.sql.driver&version=1.23.1.6
                    
Install as a Cake Tool

go.database.sql.driver

C# package converted from the Go standard library by go2cs.

Tests Docs Source Source

Package driver defines interfaces to be implemented by database drivers as used by package sql.

Most code should use the database/sql package.

The driver interface has evolved over time. Drivers should implement [Connector] and [DriverContext] interfaces. The Connector.Connect and Driver.Open methods should never return [ErrBadConn]. [ErrBadConn] should only be returned from [Validator], [SessionResetter], or a query method if the connection is already in an invalid (e.g. closed) state.

All [Conn] implementations should implement the following interfaces: [Pinger], [SessionResetter], and [Validator].

If named parameters or context are supported, the driver's [Conn] should implement: [ExecerContext], [QueryerContext], [ConnPrepareContext], and [ConnBeginTx].

To support custom data types, implement [NamedValueChecker]. [NamedValueChecker] also allows queries to accept per-query options as a parameter by returning [ErrRemoveArgument] from CheckNamedValue.

If multiple result sets are supported, [Rows] should implement [RowsNextResultSet]. If the driver knows how to describe the types present in the returned result it should implement the following interfaces: [RowsColumnTypeScanType], [RowsColumnTypeDatabaseTypeName], [RowsColumnTypeLength], [RowsColumnTypeNullable], and [RowsColumnTypePrecisionScale]. A given row value may also return a [Rows] type, which may represent a database cursor value.

If a [Conn] implements [Validator], then the IsValid method is called before returning the connection to the connection pool. If an entry in the connection pool implements [SessionResetter], then ResetSession is called before reusing the connection for another query. If a connection is never returned to the connection pool but is immediately reused, then ResetSession is called prior to reuse but IsValid is not called.


Copyright 2009 The Go Authors. All rights reserved. This C# package is converted from Go standard library source; use of that source is governed by a BSD-style license that can be found in the LICENSE file. The go2cs conversion itself is distributed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on go.database.sql.driver:

Package Downloads
go.database.sql

database.sql (net9.0 - Release) -- C# project converted from Go source

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.23.1.6 0 8/11/2026
1.23.1.5 55 8/9/2026
1.23.1.4 56 8/8/2026
1.23.1.3 93 8/4/2026
1.23.1.2 106 7/27/2026
1.23.1.1 108 7/14/2026