Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Text Editing&Processing > Others

    mysqlquery 0.1

    Download button

    No screenshots available
    Downloads: 428  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.9/5)
    12 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mantas Zimnickas | More programs
    GPL / FREE
    April 26th, 2008, 05:51 GMT
    ROOT / Text Editing&Processing / Others

     Read user reviews (0)  Refer to a friend  Subscribe

    mysqlquery description

    mysqlquery is a simple and easy to use utility for executing MySQL queries in Vim.

    mysqlquery is a simple and easy to use utility for executing MySQL queries in Vim.

    With this script comes only one function ExecMySQL(), so you need to bind a key to this function, for executing queries. For example:

    :vmap < F9 > :call ExecMySQL()< CR >
    :nmap < F9 > V:call ExecMySQL()< CR >

    After that you need to write a SQL query, then select it (or if query consist only of one line, point cursor to it) ant press < F9 >.

    Query will be executed and in new buffer you will see result of that query. Results are shown in beautifully aligned table.

    Best way to work with this plug-in is separate file for queries. At the beginning of that file, in one of 10 first lines you need to add connection string:

    -- mysql://username:password@hostname/dbname

    You can add many connection strings, but only first found string will be used. So if you want to change database, just move connection string at the very top of file.

    Use this mapping for better usage:

    map < F5 > :b#< CR >

    With this mapping, after executing a query, you can easily switch back to query editing, just by pressing < F5 >.

    Product's homepage

    Requirements:

    · Elinks
    · Vim
    · vimpydb

      


    TAGS:

    MySQL querier | Vim script | Vim plugin | MySQL | query | Vim

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM