Files
lightwalletd/storage/sqlite3.go
2018-11-20 21:45:50 -05:00

17 lines
294 B
Go

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