Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Mojo database routing

by haukex (Bishop)
on Feb 23, 2020 at 09:10 UTC ( #11113340=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    CREATE VIRTUAL TABLE contacts USING fts5(name, department);
    INSERT INTO contacts (name,department) VALUES ('John Doe','Perl');
    INSERT INTO contacts (name,department) VALUES ('Larry Wall','Perl');
    INSERT INTO contacts (name,department) VALUES ('Gloria Wall','Perl');
    
  2. or download this
    $c->sqlite->db->query(
      q{ SELECT rowid,name,department FROM contacts WHERE name MATCH ? },
      $c->stash('query') )->arrays );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-05-22 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (80 votes). Check out past polls.

    Notices?