LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2016, 11:18 AM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 227

Rep: Reputation: Disabled
Couchdb query via command line


Hi there,

could someone tell me why this:
Code:
curl http://127.0.0.1:5984/basic/_design/example/_view/by_date?key="2009/01/30 18:04:11"
returns nothing at all?

This works for all the entries in the database:
Code:
curl http://127.0.0.1:5984/basic/_design/example/_view/foo
returns the right result.

Please help this is so basic, it's making it really hard to move forward.

Kind regards
 
Old 06-29-2016, 01:49 AM   #2
iFunction
Member
 
Registered: Nov 2015
Posts: 227

Original Poster
Rep: Reputation: Disabled
Can anyone verify if this line of code looks syntactically correct?
 
Old 06-29-2016, 04:09 AM   #3
iFunction
Member
 
Registered: Nov 2015
Posts: 227

Original Poster
Rep: Reputation: Disabled
Really, no one knows this?
 
Old 06-29-2016, 04:52 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,390

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Maybe urlencode your date value?
Code:
curl http://127.0.0.1:5984/basic/_design/example/_view/by_date?key=%222009%2F01%2F30+18%3A04%3A11%22
 
1 members found this post helpful.
Old 06-30-2016, 09:30 AM   #5
iFunction
Member
 
Registered: Nov 2015
Posts: 227

Original Poster
Rep: Reputation: Disabled
Thankyou keefaz, that's exactly it!
 
Old 06-30-2016, 10:46 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,390

Rep: Reputation: 409Reputation: 409Reputation: 409Reputation: 409Reputation: 409
Cool, there is a solved thread feature somewhere, please mark it as solved if you think it helped
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Couchdb command line syntax iFunction Linux - Newbie 3 06-24-2016 08:47 AM
SQLite and banshee: query from command line? mstrimel Linux - Software 8 07-29-2015 08:31 PM
[SOLVED] Cursor does not move to the bottom line and overwrite to same line on command line mesuutt Linux - Newbie 3 02-25-2012 08:04 AM
grep query to list 1 line [which is fixed] and the next line after it [variable text] Glenn D. Linux - Software 3 01-20-2011 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration