Add description_name
to clients
This commit is contained in:
@@ -5,55 +5,45 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/mattn/go-sqlite3"
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/exerr"
|
||||
"gogs.mikescher.com/BlackForestBytes/goext/sq"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
exerr.Init(exerr.ErrorPackageConfigInit{})
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
sqlite3.Version() // ensure slite3 loaded
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.PrimarySchema[1].SQL)
|
||||
|
||||
fmt.Println()
|
||||
|
||||
for i := 2; i <= schema.PrimarySchemaVersion; i++ {
|
||||
h0, err := sq.HashMattnSqliteSchema(ctx, schema.PrimarySchema[i].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("PrimarySchema1 := %s\n", h0)
|
||||
fmt.Printf("PrimarySchema%d := %s\n", i, h0)
|
||||
}
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.PrimarySchema[2].SQL)
|
||||
|
||||
for i := 1; i <= schema.RequestsSchemaVersion; i++ {
|
||||
h0, err := sq.HashMattnSqliteSchema(ctx, schema.RequestsSchema[i].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("PrimarySchema2 := %s\n", h0)
|
||||
fmt.Printf("RequestsSchema%d := %s\n", i, h0)
|
||||
}
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.PrimarySchema[3].SQL)
|
||||
|
||||
for i := 1; i <= schema.LogsSchemaVersion; i++ {
|
||||
h0, err := sq.HashMattnSqliteSchema(ctx, schema.LogsSchema[i].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("PrimarySchema3 := %s\n", h0)
|
||||
}
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.PrimarySchema[4].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("PrimarySchema4 := %s\n", h0)
|
||||
}
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.RequestsSchema[1].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("RequestsSchema1 := %s\n", h0)
|
||||
}
|
||||
{
|
||||
h0, err := sq.HashSqliteSchema(ctx, schema.LogsSchema[1].SQL)
|
||||
if err != nil {
|
||||
h0 = "ERR"
|
||||
}
|
||||
fmt.Printf("LogsSchema1 := %s\n", h0)
|
||||
fmt.Printf("LogsSchema%d := %s\n", i, h0)
|
||||
}
|
||||
|
||||
fmt.Println()
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user