parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ideas for the sql command


From: Ole Tange
Subject: Ideas for the sql command
Date: Thu, 9 Sep 2010 23:19:18 +0200

The DBURL is not strictly defined yet, and I need some input on what
would be a good behaviour.

What should the following commands do to cause the least surprise for the user:

# 1. Should this run 'select * from foo' on the sqlite base /tmp/file.sqlite
sql 'sqlite:////tmp/file.sqlite?select * from foo;'

# 2. Should this run 'select * from foo' on the sqlite base /tmp/file.sqlite
sql 'sqlite:////tmp/file.sqlite?select%20*%20from%20foo;'

# 3. What should this do
sql 'sqlite:////tmp/file.sqlite?select%20*%20from foo;'

# 4. What should this do
sql "sqlite:////tmp/file.sqlite?select * from foo where url like 'bar%';"

# 5. What should this do
sql "sqlite:////tmp/file.sqlite?select * from foo where url like 'bar%20';"

# 6. Should this return "Incomplete SQL: select * from foo"
# Or should it add the missing ;
sql sqlite:////tmp/file.sqlite 'select * from foo'


/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]