-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should have a string array data type #57
Comments
Hi Yair - I assigned this to you. Do you still have some hours left? Please work on the |
What will the values of such string-array fields look like?
|
They will come in from Matlab as a cell array of strings. I don't know how they should be represented in sqlite but maybe as an array of strings? |
I believe that this is now done, sort of:
|
Oh, I learned something here. sqlite doesn't really have a string array type, but instead it concatenates the strings together apparently. I misunderstood the documentation, I thought sql had a true string array type. I think we need some real analog of a string array type. I think a comma isn't a good choice for a delimiter for our application here, because someone might input paragraphs of text as one of the strings. Perhaps the ASCII bell (character with number 7) might be a good choice for a delimiter? Or a sequence of I think we should keep our old string type because we use a lot of single string entries, and add a stringarray or cellstr as a new type. Thanks Yair! |
The conversion of Matlab string arrays into an SQL string of the format So instead, I now use a custom Please retry now. |
We should have a string array type. I've added new parameters to the schema.
There should be a few new search options that allow searching these string arrays with
did.query
.'has_exact_string'
should take 1 character/string parameter and returns true if one string in the array matches exactly'has_contains_string'
should take 1 characer/string parameter and returns true if one string in the array contains the provided string'numel is'
should take 1 numeric parameter N and return true if the number of array elements is exactly N.'numel >'
should take 1 numeric parameter N and return true if the number of array elements is greater than N.'numel <'
should take 1 numeric parameter N and return true if the number of array elements is less than N.'numel >='
should take 1 numeric parameter N and return true if the number of array elements is greater than or equal to N.'numel <='
should take 1 numeric parameter N and return true if the number of array elements is less than or equal to N.The text was updated successfully, but these errors were encountered: