Fernando Correa de Oliveira

Results 248 comments of Fernando Correa de Oliveira

Pg: ``` ➜ Red git:(to-many-prefetch) ✗ raku -I. -MRed -e ' my $*RED-FALLBACK = False; model Bla { has $.id is serial; has $.value is column; has @.bles is relationship(*.bla-id,...

Maybe that would make more sense to be a Role, and bring Red::Type back to the original idea... I mean: ```raku model VectorList does Vector { has Uint $.id is...

``` ➜ Red git:(master) ✗ raku -I. -MRed -MRed::Type -e ' class Point { has $.x; has $.y; } class DBPoint does Red::Type { method inflator { -> Str $p...

Now I'm working to make something like this work everywhere: ``` ➜ Red git:(master) ✗ raku -I. -MRed -MRed::Type -MRed::AST::Value -MRed::AST::JsonItem -MRed::AST::Unary -e ' class Point { has $.x; has...

For Pg it seems to be working... I still need to fix it on SQLite: (on branch add-methods-from-red-type) ``` ➜ Red git:(add-methods-from-red-type) ✗ RED_DATABASE=Pg RED_DEBUG=1 raku -I. t/75-red-type.t SQL :...

https://github.com/FCO/Red/pull/564

@jonathanstowe what do you think about that?

```perl6 ::?CLASS.^add-constraint-check: { .birth-date < .death-date OR not .death-date.defined }; ``` Or ```perl6 ::?CLASS.^add-constraint-check: chk_a_b, { .birth-date < .death-date OR not .death-date.defined }; ``` Sent with GitHawk

Should it warn when using a driver of database that do not support CHECK Sent with GitHawk

SQLite do use it? I’m surprised! :) Sent with GitHawk