Code Monkey home page Code Monkey logo

db-helpers's People

Contributors

ash-v-g avatar ashbrener avatar davehorton avatar dependabot[bot] avatar snyk-bot avatar tesarm avatar xquanluu avatar

Watchers

 avatar  avatar

db-helpers's Issues

save tls_port and wss_port in sbc_addresses

As of release 0.8.3 the sbc_addresses table also includes optional columns for tls_port and wss_port, in addition to the 'port' column which has always kept the udp port. The api should be updated to allow these new columns to be populated as well. This will be optional as not every system will necessarily be listening for tls and wss.

support mysql configuration with write master and read slaves

Currently both read and write transactions are written to the single database specified by the JAMBONES_MYSQL_XXX environment variables. I would like to add an additional set of env vars:

JAMBONES_MYSQL_WRITE_HOST
JAMBONES_MYSQL_WRITE_PORT
JAMBONES_MYSQL_WRITE_USER
JAMBONES_MYSQL_WRITE_PASSWORD
JAMBONES_MYSQL_WRITE_DATABASE
JAMBONES_MYSQL_WRITE_CONNECTION_LIMIT

These are optional and if not provided then the behavior is as current. However, for an installation that wishes to send all write transactions (e.g. INSERT, UPDATE, or DELETE) to a centralized master database, but read against a local readonly slave, they would provide values for the JAMBONES_MYSQL_WRITE_XXX env vars in addition to the JAMBONES_MYSQL_XXX which are still required.

db caching does not work with object arguments

It is possible to call pp.query with an object, rather than array, e.g.

[
   {
       sql: 'SELECT * \nFROM accounts account \nWHERE account.account_sid = ?',
       nestTables: true
    },
    '9351f46a-678c-43f5-b8a6-d4eb58d131af'
]

Statements like these will not be cached.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.