;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\301\307\310\311\312& \210\313\314\315\316\317DD\320\306\303\321\322\323\324\311\325& \210\313\326\315\316\327DD\330\306\303\321\322\323\331\311\332& \207" [require lsp-mode custom-declare-group lsp-sqls nil "LSP support for SQL, using sqls" :group :link (url-link "https://github.com/lighttiger2505/sqls") :package-version (lsp-mode . "7.0") custom-declare-variable lsp-sqls-server funcall function #[0 "\300\207" [#1="sqls"] 1 #1#] "Path to the `sqls` binary." :risky t :type file (lsp-mode . "7.0") lsp-sqls-workspace-config-path #[0 "\300\207" [#2="workspace"] 1 #2#] "If non-nil then setup workspace configuration with json file path." (choice (const "workspace") (const "root")) (lsp-mode . "7.0")] 12) (defalias 'lsp-sqls--make-launch-cmd #[0 "C\207" [lsp-sqls-server] 2]) #@94 Setup workspace configuration using json file depending on `lsp-sqls-workspace-config-path'. (defalias 'lsp-sqls-setup-workspace-configuration #[0 "\301\267\202\302\202\303\304 \302\"\202\305\211\205\"\306!\205\"\307\310!!\207" [lsp-sqls-workspace-config-path #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 purecopy t data ("workspace" 6 "root" 10)) ".sqls/config.json" f-join lsp-workspace-root nil file-exists-p lsp--set-configuration lsp--read-json-file] 4 (#$ . 913)]) (byte-code "\300\301\302\303\304!\305\306\307\310\311\312\313\314&\n!\210\315\316!\207" [lsp-register-client make-lsp-client :new-connection lsp-stdio-connection lsp-sqls--make-launch-cmd :major-modes (sql-mode) :priority -1 :server-id sqls :initialized-fn #[257 "\211\301 )\207" [lsp--cur-workspace lsp-sqls-setup-workspace-configuration] 2 "\n\n(fn WORKSPACE)"] provide lsp-sqls] 12)