Skip to content

Commit 190b5cb

Browse files
committed
feat(sql): Disable sql command on 32-bit arm to fix compilation
1 parent 878b7c4 commit 190b5cb

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

sql/sql.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build !arm
2+
13
package sql
24

35
import (

sql/sql_arm.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// +build arm
2+
3+
package sql
4+
5+
import (
6+
"context"
7+
"errors"
8+
"io"
9+
10+
"github.com/qri-io/qri/dsref"
11+
"github.com/qri-io/qri/repo"
12+
)
13+
14+
// Service represents SQL running
15+
type Service struct {}
16+
17+
// New returns a new Service
18+
func New(r repo.Repo, loadDataset dsref.ParseResolveLoad) *Service {
19+
return &Service{}
20+
}
21+
22+
// Exec fails to execute on 32-bit systems
23+
func (svc *Service) Exec(ctx context.Context, w io.Writer, outFormat, query string) error {
24+
return errors.New("sql command is not available on 32-bit systems")
25+
}

0 commit comments

Comments
 (0)