views:

82

answers:

3

Is there any application/project that provides you with a command line SQL client that will work with multiple databases and/or provides a mechanism for writing your own drivers?

Put another way, I'm looking for something like the mysql command line client or SQL*Plus for Oracle, but that's database agnostic.

All platforms welcome, but extra points for OS X/*nix approaches.

+1  A: 

a SQL client and front-end for multiple database is Crunchyfrog, which offers a Native Database Shell. Not sure if this meets your requriement

Jon Schoning
+2  A: 

Try sqlsharp from the Mono subversion repository. You can define new providers via a configuration file. They are loaded from .NET assemblies, so you can write your own provider if you want to, but Mono already has MS SQL and Oracle, plus postgres and MySQL provide their own .NET assemblies.

It works on any platform supported by Mono and MS.NET.

Gonzalo
That looks pretty awesome. Random related question: Is it a hard or easy thing to get the Mono run-time onto a system you don't have full access (i.e. root/sudo/Administrator) to?
Alan Storm
Easy. You just need to either build it from sources (you'll need gcc, glib-2.0, make, autotools, libtool, pkg-config for windows, just VS + glib-2.0 and pkg-config) or install it in a folder where you have rights to write.
Gonzalo
+1  A: 

Why not use something built on Perl and DBI like DBI-Shell?

SqlACID