amazon-qldb-driver-go

module
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0

README

Amazon QLDB Go Driver

license AWS Provider

This is the Go driver for Amazon Quantum Ledger Database (QLDB), which allows Golang developers to write software that makes use of Amazon QLDB.

For getting started with the driver, see Go and Amazon QLDB.

Requirements

Basic Configuration

See Accessing Amazon QLDB for information on connecting to AWS.

Required Golang versions

QldbDriver requires Golang 1.15 or later.

Please see the link below for more detail to install Golang:

Getting Started

Please see the Quickstart guide for the Amazon QLDB Driver for Go.

First, ensure your project is using Go modules to install dependencies in your project.

In your project directory, install the driver using go get:

go get github.com/awslabs/amazon-qldb-driver-go/v3/qldbdriver

For more instructions on working with the golang driver, please refer to the instructions below.

See Also
  1. Getting Started with Amazon QLDB Go Driver A guide that gets you started with executing transactions with the QLDB Go driver.
  2. For a quick start on how to interact with the driver, please refer to Go Driver Quick Start.
  3. QLDB Go Driver Cookbook The cookbook provides code samples for some simple QLDB Go driver use cases.
  4. QLDB Golang driver accepts and returns Amazon ION Documents. Amazon Ion is a richly-typed, self-describing, hierarchical data serialization format offering interchangeable binary and text representations. For more information read the ION docs.
  5. Amazon QLDB supports a subset of the PartiQL query language. PartiQL provides SQL-compatible query access across multiple data stores containing structured data, semistructured data, and nested data. For more information read the docs.
  6. Refer the section Common Errors while using the Amazon QLDB Drivers which describes runtime errors that can be thrown by the Amazon QLDB Driver when calling the qldb-session APIs.
  7. Driver Recommendations — Check them out in the Best Practices in the QLDB documentation.
  8. Exception handling when using QLDB Drivers — Refer to the section Common Errors while using the Amazon QLDB Drivers which describes runtime exceptions that can be thrown by the Amazon QLDB Driver when calling the qldb-session APIs.

Development

Setup

Assuming that you have Golang installed, use the below command to clone the driver repository.

$ git clone https://github.com/awslabs/amazon-qldb-driver-go.git
$ cd amazon-qldb-driver-go

Changes can now be made in the repository.

Running Tests

All the tests can be run by running the following command in the qldbdriver folder. Please make sure to setup and configure an AWS account to run the integration tests.

go test -v

To only run the unit tests:

go test -v -short

To only run the integration tests:

go test -run Integration
Documentation

The Amazon QLDB Go Driver adheres to GoDoc standards and the documentation can be found here.

You can generate the docstring HTML locally by running the following in the root directory of this repository: godoc -http=:6060

Getting Help

Please use these community resources for getting help.

  • Ask a question on StackOverflow and tag it with the amazon-qldb tag.
  • Open a support ticket with AWS Support.
  • Make a new thread at AWS QLDB Forum.
  • If you think you may have found a bug, please open an issue.

Opening Issues

If you encounter a bug with the Amazon QLDB Go Driver, we would like to hear about it. Please search the existing issues and see if others are also experiencing the issue before opening a new issue. When opening a new issue, we will need the version of Amazon QLDB Go Driver, Go language version, and OS you’re using. Please also include reproduction case for the issue when appropriate.

The GitHub issues are intended for bug reports and feature requests. For help and questions with using AWS QLDB GO Driver please make use of the resources listed in the Getting Help section. Keeping the list of open issues lean will help us respond in a timely manner.

License

This library is licensed under the Apache 2.0 License.

Directories

Path Synopsis
Package qldbdriver is the Golang driver for working with Amazon Quantum Ledger Database.
Package qldbdriver is the Golang driver for working with Amazon Quantum Ledger Database.
qldbsessioniface
Package qldbsessioniface provides an interface to enable mocking the Amazon QLDB Session service client for testing your code.
Package qldbsessioniface provides an interface to enable mocking the Amazon QLDB Session service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL