Project

itds

0.0
No commit activity in last 3 years
No release in over 3 years
A very simple SQL server client.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0

Runtime

~> 0.6.2
 Project Readme

Itds Build Status

A deadly simple SQL server CLI tools just to ease the developer working on Mac or Linux.

Dependency

Install freetds using the package manager of your system.

Mac

$homebrew install freetds

Ubuntu

$sudo apt-get install freetds-dev

Install

$gem install itds

Usage

Help

$itds --help

Command parameters:

$itds -h <hostname> -p <password> -u <username> -d <contained_database> [SQL]

Execute a command

$itds -h <hostname> -d <database> select 1
+---+

+---+
| 1 |
+---+

Cancel a request in interactive mode.

$itds -h <hostname> -d <mydb>
mydb> waitfor delay '00:00:04'
^C
mydb> select * from test
+----+
| id |
+----+
| 10 |
+----+
mydb> ^C
$