More func
This commit is contained in:
@@ -10,21 +10,12 @@ import (
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"github.com/xuri/excelize/v2"
|
||||
|
||||
_ "embed"
|
||||
)
|
||||
|
||||
var schema = `
|
||||
CREATE TABLE IF NOT EXISTS data (
|
||||
description text,
|
||||
sku text,
|
||||
level2 text,
|
||||
level3 text,
|
||||
revenue float,
|
||||
cost float,
|
||||
quantity integer,
|
||||
year integer,
|
||||
month integer
|
||||
);
|
||||
`
|
||||
//go:embed sql/schema.sql
|
||||
var schema string
|
||||
|
||||
type Data struct {
|
||||
Description string
|
||||
|
||||
Reference in New Issue
Block a user