github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/vent/types/sql_utils.go (about)

     1  package types
     2  
     3  import "github.com/hyperledger/burrow/logging"
     4  
     5  // SQLConnection stores parameters to build a new db connection & initialize the database
     6  type SQLConnection struct {
     7  	DBAdapter string
     8  	DBURL     string
     9  	DBSchema  string
    10  	Log       *logging.Logger
    11  }
    12  
    13  // SQLCleanDBQuery stores queries needed to clean the database
    14  type SQLCleanDBQuery struct {
    15  	SelectChainIDQry    string
    16  	DeleteChainIDQry    string
    17  	InsertChainIDQry    string
    18  	SelectDictionaryQry string
    19  	DeleteDictionaryQry string
    20  	DeleteLogQry        string
    21  }