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

new data type #24

Closed
ezx opened this issue Feb 15, 2012 · 2 comments
Closed

new data type #24

ezx opened this issue Feb 15, 2012 · 2 comments

Comments

@ezx
Copy link

ezx commented Feb 15, 2012

Hello,
This is not an issue, just a question.
Is is possible for a speedtables data structure itself to also be a speedtables data type, therefore allowing nested data structures?

Thanks

@bovine
Copy link
Member

bovine commented Feb 15, 2012

The more typical way would be to have a second table that has a parent id column that allows one or more rows in the second table to be retrieved based on the key from the first table.

Alternatively, you can also just use a string datatype in your table and store a serialized version of a Tcl array or dict, though that loses some of the benefits of using a speedtable.

@bovine bovine closed this as completed Feb 21, 2012
@ezx
Copy link
Author

ezx commented Mar 4, 2012

RE: nested data structure (my previous post)
Thanks,
I also noticed that I can do the following:
[package req My-st]
[my-st create st]
[my-st create st::1]
[my-st create st::2]

Which opens the door to other interesting possibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants