Skip to content

Commit

Permalink
feat(sql): Disable sql command on 32-bit arm to fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Nov 17, 2020
1 parent 878b7c4 commit 190b5cb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/sql.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !arm

package sql

import (
Expand Down
25 changes: 25 additions & 0 deletions sql/sql_arm.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// +build arm

package sql

import (
"context"
"errors"
"io"

"github.com/qri-io/qri/dsref"
"github.com/qri-io/qri/repo"
)

// Service represents SQL running
type Service struct {}

// New returns a new Service
func New(r repo.Repo, loadDataset dsref.ParseResolveLoad) *Service {
return &Service{}
}

// Exec fails to execute on 32-bit systems
func (svc *Service) Exec(ctx context.Context, w io.Writer, outFormat, query string) error {
return errors.New("sql command is not available on 32-bit systems")
}

0 comments on commit 190b5cb

Please sign in to comment.