query

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package query contains all query string used throughout the project. While it may make sense if we put this part inside each business service package, we find that multiple services may re-use the same query. Thus, we put it here so that the same query can be re-used among all services if needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPendingTransactionQueryString

func GetPendingTransactionQueryString() string

GetPendingTransactionQueryString return query list transaction have status pending. Based on the state db document prefix, we basically get all documents that has prefix greater \u0000Transactions and less than \u0000Transaction + inf as well as pending status It is then sorted ascending based on the created timestamp

The corresponding index is defined in the META-INF directory

func GetTransactionByBlockchainId

func GetTransactionByBlockchainId(blockchainId string) string

GetTransactionByBlockchainId return query string to get all transaction buy blockchainId

Types

This section is empty.

Jump to

Keyboard shortcuts

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