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.
See Accessing Amazon QLDB for information on connecting to AWS.
qldbdriver 0.1.0 requires Golang 1.14 or later.
Please see the link below for more detail to install Golang:
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/qldbdriver
For more instructions on working with the golang driver, please refer to the instructions below.
- Getting Started with Amazon QLDB Go Driver A guide that gets you started with executing transactions with the QLDB Go driver.
- For a quick start on how to interact with the driver, please refer to Go Driver Quick Start.
- 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.
- 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.
- 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.
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.
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
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.
- If you think you may have found a bug, please open an issue.
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 SDK for GO 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.
The Amazon QLDB Go Driver adheres to GoDoc standards and the documentation can be found here
If you wish to use GoDoc locally, please refer the GoDoc documetation
This library is licensed under the Apache 2.0 License.