db-helpers's People
db-helpers's Issues
enhancement to cleanSbcAddresses
When this feature is installed, the existing rows in the table will have NULL for last_updated. The sql statement:
db-helpers/lib/clean-sbc-addresses.js
Line 13 in 6179522
should clean BOTH rows which have a NULL last_updated as well as those that have a last_updated value older than the interval
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.
add support for postgresql as an alternative to mysql
It would be nice to give customers a choice of postgresql or mysql for the jambonz provisioning database. This would mean changes here but also in feature server and some other apps
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.