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
Create table with the same columns order as model's attributes order #135
Comments
|
You beat me to it. I actually noticed this the other day. |
|
I don't know why I thought it was a good idea to use a Set to store the columns... :P |
|
Because you could 😎😂 |
|
I was just going to add a new issue reporting the column order thing, till I saw this. I used the code in the FCO/Red README, to create the Person/Post tables in Pg. Glad it's being addressed. Thanks for your efforts. |
|
@bazzaar sorry, I haven't gotten it... Are you still having this problem? With the GitHub code? Should I reopen this issue? Thanks for your report! |
|
@FCO it might be my installed Red module is not completely up to date (used with the latest Rakudo Star), I guess I should see if I can get the latest code and use that. Probably my mistake. Though yes I did find the order of columns mixed up in my resulting tables. |
|
@bazzaar installed with zef? Not from GitHub? This change aren't on the CPAN yet... but if you clone the repo and |
|
@FCO thanks for the helpful tip, I didn't know how to install a local module, but now I do :-) ... however, unfortunately the install failed : |
|
odd, it installed here: |
|
|
in Red/lib/X/Red/Exceptions.pm6 .... But now that's thrown up the following : |
|
I've updated my perl6 version and I'm getting: |
|
in Red/Operators.pm6 : perhaps these two 'infix creator' blocks are repeated, the 2nd occurrence of which have Lines 411-417 : |
|
When I tried for the 2nd time it haven't gave me any warning or error... |
|
It's working therefor me... @jonathanstowe would you mind to test it? |
|
So I commented out the lines 411-417 in Red/Operators.pm6, and that error disappeared, but now I'm back to the original error again (that's with my edit to add a new line to the end of The zef install seemed to take quite a bit longer before it failed though ... |
|
The last Rakudo version, with no changes it's working... |
|
@bazzaar would you mind to send me the output of a |
|
I also tried adding stubs for two infix classes In and NotIn but it didn't make a difference, same error. Here's the |
|
In |
|
I looks it doesn't exists on META6.json. It's here: https://github.com/FCO/Red/blob/master/lib/Red/AST/Unary.pm6#L41 |
|
No, it should only need a |
|
I added a |
|
@bazzaar what's your Rakudo version? |
Is that what you mean? |
|
|
Thanks for following up on this @FCO , I'll delete my fork of Red, and my local clone of it, and get a new fork/clone of FCO/Red master. Hopefully that'll do the trick. I'll check I've got all those modules up to date too. |
|
Well things have not changed unfortunately (but I do notice one of my modules is out of date compared to yours, not sure why) : Excerpt from zef list --installed So, I'll update it : ... results in different error but still no joy .. |
|
@bazzar would you mind to test building and running the docket image? Thanks! |
|
@bazzaar I asked for help on #perl6 and tony-o and ugexe helped me a lot: |
|
@FCO thanks again for helping me with this. I saw tony-o's comment to look at the file : |
|
@FCO Aah, that puts a different complexion on things, I've never tried to install a local module before. I'll do some research. My perl6 has installed flawlessly, and I've installed a number of modules from the ecosystem (including Red) without any errors. For the local module install I've been running : |
|
No, that’s right, but probably your $PERL6LIB (or something like that) is pointing to “.” Sent with GitHawk |
|
@FCO a final update, I just rebuilt my perl6, and set the PERL6LIB envvar prior to install the FCO/Red clone I got earlier today. It installed successfully :-) Thanks for your help, and I hope I didn't waste to much of your time. bazzaar PS. I can confirm that the ordering of columns in newly created Pg tables is correctly preserved. |
|
Great! And did the order of the create table work? I hope you like Red! :) |
No description provided.
The text was updated successfully, but these errors were encountered: