Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Can't get Dancer2 Auth::Extensible with DBIC working

by erix (Prior)
on Feb 06, 2017 at 05:15 UTC ( #1181160=note: print w/replies, xml ) Need Help??

in reply to Can't get Dancer2 Auth::Extensible with DBIC working

(2) Is there anyway I can set up my config so I don't have to repeat the DBIC login data.

If the objective is, as I assume, to avoid having the password there (twice): PostgreSQL offers the possibility to set up postgres services, with connection-details in a so-called service-file, leading to e.g. dbi:Pg:service=dev

It is also possible to setup DBI to connect using just 'dbi:Pg:', with postgres' libpq library picking up connection-info from the environment ( see PGSERVICE in the fine manual; and also: PG environmental variables ).

(And there is even the DBI_DSN env var to put the 'dbi:Pg:'-part in the environment:

DBI_DSN=dbi:Pg: perl -MDBI -E 'print DBI->connect, "\n"' DBI::db=HASH(0x181f760)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-06-10 07:43 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (37 votes). Check out past polls.