{"id":17119170,"url":"https://github.com/regadas/sql-trino","last_synced_at":"2025-07-25T00:31:06.483Z","repository":{"id":41810503,"uuid":"486612147","full_name":"regadas/sql-trino","owner":"regadas","description":"Adds Trino support to SQLi mode.","archived":false,"fork":false,"pushed_at":"2023-11-22T14:10:59.000Z","size":25,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-15T17:56:28.203Z","etag":null,"topics":["emacs","emacs-package","sql-mode","trinodb"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regadas.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-28T13:45:58.000Z","updated_at":"2024-08-16T19:22:14.000Z","dependencies_parsed_at":"2022-08-11T18:10:34.770Z","dependency_job_id":null,"html_url":"https://github.com/regadas/sql-trino","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fsql-trino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fsql-trino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fsql-trino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regadas%2Fsql-trino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regadas","download_url":"https://codeload.github.com/regadas/sql-trino/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227489395,"owners_count":17780588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","emacs-package","sql-mode","trinodb"],"created_at":"2024-10-14T17:56:26.819Z","updated_at":"2024-12-01T05:22:17.980Z","avatar_url":"https://github.com/regadas.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: sql-trino.el\n#+AUTHOR: Filipe Regadas\n#+OPTIONS: num:nil\n#+OPTIONS: H:0\n\n** What is it?\n\nEmacs comes with a SQL interpreter which is able to open a connection to databases and present you with a prompt you are probably familiar with (e.g. =mysql\u003e=, =pgsql\u003e=, =trino\u003e=, etc.). This mode gives you the ability to do that for Trino.\n\n** How do I get it?\n\nThe canonical repository for the source code is https://github.com/regadas/sql-trino.\n\nThe recommended way to install the package is to utilize Emacs's =package.el= along with MELPA. To set this up, please follow MELPA's [[https://melpa.org/#/getting-started][getting started guide]], and then run =M-x package-install sql-trino=.\n\n*** Doom Emacs\n#+begin_src emacs-lisp\n(package! sql-trino)\n#+end_src\n\n** Requirements\n\nDownload the [[https://repo1.maven.org/maven2/io/trino/trino-cli/378/trino-cli-378-executable.jar][Trino CLI]], rename it to =trino= and put it in your =$PATH=.\n\n** How do I use it?\n\nWithin Emacs, run =M-x sql-trino=. You will be prompted by a minibuffer for a server. Enter a server and you should be greeted by a SQLi buffer with a =trino\u003e= prompt.\n\nFrom there you can either type queries in this buffer, or open a =sql-mode= buffer and send chunks of SQL over to the SQLi buffer with the requisite key-chords.\n\n*** Org-mode usage\n\n=org-mode= support is available through the usage of [[https://github.com/nikclayton/ob-sql-mode][ob-sql-mode]], a =sql-mode= backend for Org Babel.\n\n**** Install\n\nCheck =ob-sql-mode= installation [[https://github.com/nikclayton/ob-sql-mode#installation][section]].\n\n***** Doom Emacs\n#+begin_src emacs-lisp\n(package! ob-sql-mode)\n#+end_src\n\n**** Example\n#+begin_example\n,#+begin_src sql-mode :product trino\nprepare customers\nfrom\nselect c_customer_id\nfrom sf100000.customer\nlimit ?;\n,#+end_src\n#+end_example\n\n#+begin_example\n,#+begin_src sql-mode :product trino\nexecute customers using 1;\n,#+end_src\n#+end_example\n\n** Contributing\n\nPlease open GitHub issues and pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fsql-trino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregadas%2Fsql-trino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregadas%2Fsql-trino/lists"}