-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sql): Disable sql command on 32-bit arm to fix compilation
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// +build !arm | ||
|
||
package sql | ||
|
||
import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} |