Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Persistent data structures -- why so complicated? (updated)

by haukex (Archbishop)
on Mar 11, 2021 at 18:53 UTC ( [id://11129468]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE students (
        name TEXT NOT NULL PRIMARY KEY,
    ...
        grade TEXT,
        data JSONB NOT NULL DEFAULT '{}'::jsonb
    );
    
  2. or download this
    use Mojo::Pg;
    
    ...
        }
    }
    $res->finish;
    
  3. or download this
    $ docker run --rm -p54321:5432 --name pgtestdb -e POSTGRES_PASSWORD=Fo
    +oBar -d postgres:13
    # wait a few seconds for it to start
    ...
    # run the above Perl script
    $ PGPASSWORD=BarFoo psql postgres://localhost:54321/testing -c 'SELECT
    + * FROM students'
    $ docker stop pgtestdb
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found