Advertisement
Guest User

Untitled

a guest
Apr 24th, 2024
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 6 0.22 KB | Source Code | 0 0
  1. #!env raku
  2.  
  3. use DBIish;
  4.  
  5. use Attribute::Lazy;
  6.  
  7. class T {
  8.     has $.dbh = DBIish.connect('SQLite', :database<thefile>);
  9.     has $.sth will lazy {
  10.         $!dbh.prepare("SELECT 1");
  11.     };
  12. }
  13.  
  14. T.new.sth.execute;
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement