Categorygithub.com/canonicalltd/go-grpc-sql
modulepackage
0.0.0-20180711140844-181d263025fb
Repository: https://github.com/canonicalltd/go-grpc-sql.git
Documentation: pkg.go.dev

# README

go-grpc-sql Build Status Coverage Status Go Report Card GoDoc

This repository provides the grpcsql package, which can be used to expose a Go SQL driver.Driver instance over gRPC.

Documentation

The documentation for this package can be found on Godoc.

# Functions

NewDriver creates a new gRPC SQL driver for creating connections to backend gateways.
NewGateway creates a new gRPC gateway executing requests against the given SQL driver.
NewServer is a convenience for creating a gRPC server with a registered SQL gateway backed by the given driver.

# Structs

Conn wraps a connection to a gRPC SQL gateway.
Driver implements the database/sql/driver interface and executes the relevant statements over gRPC.
Gateway mapping gRPC requests to SQL queries.
Result is the result of a query execution.
Rows is an iterator over an executed query's results.
Stmt is a prepared statement.
Tx is a transaction.

# Type aliases

Dialer is a function that can create a gRPC connection.