Skip to content
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

[WIP] Object Subscripting on cursors #64

Merged
merged 1 commit into from
Mar 13, 2014
Merged

[WIP] Object Subscripting on cursors #64

merged 1 commit into from
Mar 13, 2014

Conversation

astigsen
Copy link
Contributor

I have added initial support for Object Subscripting on cursors so we can play with the syntax.

It mainly need some more error checking. When we get support in the basic table methods for taking native obj-c types like NSData as values, it should be easy to transition it to using them directly.

One note about the cursor object in general. I noticed that it holds a TightdbTable reference (i.e. the obj.c object) rather than a direct TableRef. I wonder if that is needed? It is a bit of unneeded overhead to have to do everything through obj-c selectors if we could have used direct method calls.

@bmunkholm @mekjaer @kneth

{
TightdbType columnType = [_table getColumnType:colNdx];

// TODO: Verify obj type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably use verify_cellwhich is found in my object literal branch.

@kneth
Copy link
Contributor

kneth commented Mar 12, 2014

Please add documentation and update changes.txt.

[_table setBinary:(TightdbBinary *)obj inColumn:colNdx atRow:_ndx];
break;
case tightdb_Table:
[_table setTable:(TightdbTable *)obj inColumn:colNdx atRow:_ndx];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here if the specified object is not a TightdbTable?

@kneth
Copy link
Contributor

kneth commented Mar 13, 2014

I have merged it into #61 and fixed all the names there. Please review the new features by @astigsen as part of your review of #61.

@kneth kneth merged commit b22b99f into master Mar 13, 2014
@bmunkholm bmunkholm deleted the subscripting branch April 6, 2014 07:19
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants