Subject: [bug#56096] [PATCH v2 3/3] gnu: databases: Add sqls 0.2.18.

From: muradm <[email-masked]>
Date: Mon, 20 Jun 2022 07:22:39 +0300

* gnu/packages/databases (sqls): New variable.
---
 gnu/packages/databases.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 92ab94f453..1c44b0c63e 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -57,6 +57,7 @@
 ;;; Copyright © 2021 Foo Chuan Wei <[email-masked]>
 ;;; Copyright © 2022 Zhu Zihao <[email-masked]>
 ;;; Copyright © 2021 Brice Waegeneire <[email-masked]>
+;;; Copyright © 2022 muradm <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -146,6 +147,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages sphinx)
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages sqlite)
+  #:use-module (gnu packages syncthing)
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages terminals)
   #:use-module (gnu packages texinfo)
@@ -4788,3 +4790,36 @@ (define-public sqlitebrowser
      ;; dual license
      (list license:gpl3+
            license:mpl2.0))))
+
+(define-public sqls
+  (package
+    (name "sqls")
+    (version "0.2.18")
+    (home-page "https://github.com/lighttiger2505/sqls")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "13837v27avdp2nls3vyy7ml12nj7rxragchwf92adn10ffp4aj6c"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/lighttiger2505/sqls"))
+    (inputs
+     (list
+      go-github-com-go-sql-driver-mysql
+      go-github-com-lib-pq
+      go-github-com-mattn-go-sqlite3
+      go-github-com-olekukonko-tablewriter
+      go-github-com-pkg-errors
+      go-github-com-sourcegraph-jsonrpc2
+      go-golang-org-x-crypto
+      go-github.com-mattn-go-runewidth
+      go-golang-org-x-xerrors
+      go-gopkg-in-yaml-v2))
+    (synopsis "SQL language server written in Go.")
+    (description "An implementation of the Language Server Protocol for SQL")
+    (license license:expat)))
-- 
2.36.1