<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          usqlSQL 數(shù)據(jù)庫的通用命令行界面

          聯(lián)合創(chuàng)作 · 2023-09-30 23:33

          usql 是 SQL 數(shù)據(jù)庫的通用命令行界面。支持主流的數(shù)據(jù)庫軟件,如 PostgreSQL, MySQL, Oracle Database, SQLite3, Microsoft SQL Server 以及許多其他的數(shù)據(jù)庫(包括 NoSQL 和非關(guān)系型數(shù)據(jù)庫)。

          usql 的靈感來自 PostgreSQL 的 psql,通過命令行提供了一種簡單的方式來操作 SQL 和 NoSQL 數(shù)據(jù)庫。usql 支持大多數(shù) psql 的核心特性,如變量、反引號(backticks)和命令,并具有 psql 不支持的其他功能,如語法高亮、基于上下文的自動補(bǔ)全和多數(shù)據(jù)庫支持等。

          使用

          安裝完成后,usql 可以像以下方式這樣使用:

          # connect to a postgres database
          $ usql postgres://booktest@localhost/booktest
          
          # connect to an oracle database
          $ usql oracle://user:pass@host/oracle.sid
          
          # connect to a postgres database and run script.sql
          $ usql pg://localhost/ -f script.sql

          命令行選項(xiàng)

          $ usql --help
          usql, the universal command-line interface for SQL databases.
          
          usql 0.7.0
          Usage: usql [--command COMMAND] [--file FILE] [--output OUTPUT] [--username USERNAME] [--password] [--no-password] [--no-rc] [--single-transaction] [--set SET] DSN
          
          Positional arguments:
            DSN                    database url
          
          Options:
            --command COMMAND, -c COMMAND
                                   run only single command (SQL or internal) and exit
            --file FILE, -f FILE   execute commands from file and exit
            --output OUTPUT, -o OUTPUT
                                   output file
            --username USERNAME, -U USERNAME
                                   database user name [default: ken]
            --password, -W         force password prompt (should happen automatically)
            --no-password, -w      never prompt for password
            --no-rc, -X            do not read start up file
            --single-transaction, -1
                                   execute as a single transaction (if non-interactive)
            --set SET, -v SET      set variable NAME=VALUE
            --help, -h             display this help and exit
            --version              display version and exit
          瀏覽 15
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評論
          圖片
          表情
          推薦
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美一级娱乐 | 日韩黄色三级A | 亚州V | 亚洲无码av中文字幕 | 影音先锋全部av鲁色资源站小说 |