Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-06-26 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?