MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / openStorage

Function openStorage

blockproducer/storage.go:161–173  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

159}
160
161func openStorage(path string) (st xi.Storage, err error) {
162 var ierr error
163 if st, ierr = xs.NewSqlite(path); ierr != nil {
164 return
165 }
166 for _, v := range ddls {
167 if _, ierr = st.Writer().Exec(v); ierr != nil {
168 err = errors.Wrap(ierr, v)
169 return
170 }
171 }
172 return
173}
174
175func addBlock(height uint32, b *types.BPBlock) storageProcedure {
176 var (

Callers 1

NewChainWithContextFunction · 0.85

Calls 2

ExecMethod · 0.65
WriterMethod · 0.65

Tested by

no test coverage detected