storage: test sqlite in-memory

This commit is contained in:
George Tankersley
2018-11-20 21:45:28 -05:00
parent 0dee0b425e
commit 77c3f771e0
3 changed files with 19 additions and 27 deletions

View File

@@ -5,11 +5,10 @@ import "database/sql"
func createBlockTable(conn *sql.DB) error {
tableCreation := `
CREATE TABLE IF NOT EXISTS blocks (
height INTEGER,
height INTEGER PRIMARY KEY,
hash TEXT,
has_sapling_tx BOOL,
compact_encoding BLOB,
PRIMARY KEY (height, hash)
compact_encoding BLOB
);
`
_, err := conn.Exec(tableCreation)