adding auth and databse

10 views
Skip to first unread message

sv savage

unread,
Jan 29, 2015, 12:48:00 PM1/29/15
to socket...@googlegroups.com
Hi
I want to add database access  I am using both pg {postgres} and pgx {json postgres}. I use pg for auth, permissions and framework specific and pgx, redis for session and real time data.

I noticed an api.add() function,  should I put the database stuff there?
api.add("pg",pg);
api.add("config",config);

Is that the best way for a global database?
Reply all
Reply to author
Forward
0 new messages