-
-
Save Altai-man/fd7583e7c291117b57fec9b96195c71f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Red; | |
model Person is rw { | |
has Int $.id is serial; | |
has Str $.name is column; | |
} | |
my $*RED-DB = database “SQLite”; | |
Person.^create-table; | |
my $p = Person.^create: :name<John>; | |
lives-ok { $p.name = <Jack> }, "Column is rw when the model is marked as rw"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment