Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

[Raku] Trying to get Red see the schema

by tomgracey (Scribe)
on Mar 26, 2021 at 22:25 UTC ( [id://11130406]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Red;
    
    ...
        has $.user is relationship(*.id, :model<User>);
    }
    
  2. or download this
    #!/usr/bin/raku
    
    ...
    my $*RED-DB = database "Pg", :user<vmail_user>, :dbname<vmail>, :passw
    +ord<--redacted-->;
    my $user = User.^create( username => 'Bill' );
    print "*** DONE ***\n";
    
  3. or download this
     
    # \d user
                              Table "public.user"
    ...
    Foreign-key constraints:
        "vmail_user_id_fkey" FOREIGN KEY (user_id) REFERENCES "user"(id)
    
  4. or download this
    Could not find Vmail in:
        file#/var/www/apps/raku/vmail/lib
    ...
      in method <anon> at /opt/rakudo-pkg/share/perl6/site/sources/C6C0BDE
    +B2D9A3E5141D8CD425806A5162AFE5DE9 (MetamodelX::Red::Relationship) lin
    +e 58
      in method create at /opt/rakudo-pkg/share/perl6/site/sources/A963FC4
    +C1C5D6923CAA0DC1451EE51EA254DA1ED (MetamodelX::Red::Model) line 483
      in block <unit> at test_red.raku line 9
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11130406]
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-25 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found