Permalink
Browse files

Updates

  • Loading branch information...
1 parent 5af56ec commit 80fa2f1fa2fe1cc5ef535211eee2c3bf5559dea1 @dagwieers committed Jan 11, 2006
Showing with 14 additions and 0 deletions.
  1. +14 −0 sarahsql.py
View
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import sys, os, sqlite, string
+import sarahlib
+
+sys.stdout = os.fdopen(1, 'w', 0)
+con, cur = sarahlib.opendb()
+
+query = string.join(sys.argv[1:], ' ')
+cur.execute(query)
+for rec in cur.fetchall():
+ for col in rec:
+ print '%s\t' % col,
+ print

0 comments on commit 80fa2f1

Please sign in to comment.