arberkatellari
0e5c5a9e60
Slight improvements to some Clone functions
2025-04-11 13:09:50 +02:00
arberkatellari
de349e2482
Revise InternalDB constructor
2025-04-11 13:09:50 +02:00
arberkatellari
a168f262e2
Add dump and restore functionality for internal DBs
2025-04-06 12:08:40 +02:00
gezimbll
18644c7f0b
added option to compress CostDetails before stored in db
2025-03-20 19:37:43 +01:00
gezimbll
dd5906e46e
added log level field on stordb opts for controlling sql verbosity
2025-02-20 09:53:31 +01:00
ionutboangiu
73fc386036
Add stordb pgSSLCertMode option
2024-08-12 18:36:45 +02:00
ionutboangiu
d0183597f1
Add postgres stor_db SSL opts
2024-08-09 09:13:10 +02:00
ionutboangiu
eb3bd5cc1d
Add redisPoolPipelineLimit configuration field for datadb
...
Sets the maximum number of commands that can be pipelined before flushing.
0 means no limit and pipelines will only be limited by the time window.
2024-07-05 11:21:16 +02:00
ionutboangiu
ed3fa0d294
Add redisPoolPipelineWindow configuration field for datadb
...
Sets the duration after which internal pipelines are flushed.
0 disabled implicit pipelining.
2024-07-02 19:58:03 +02:00
gezimbll
cf720b0618
added postgres configuration option to choose the schema( #4318 )
2024-04-16 12:23:38 +02:00
ionutboangiu
17fbc2d51b
Rename mongoScheme opt to mongoConnScheme
2023-12-12 10:10:26 +01:00
ionutboangiu
24cbe49d90
Add support for mongodb+srv conn format
...
Option can be found in db opts under the name 'mongoSchema'.
2023-12-11 17:15:40 +01:00
ionutboangiu
7886a35d63
Rename composeURI func to composeMongoURI
...
To reflect that it's used exclusively for MongoDB (for now at least).
Also added a descriptive comment to the function.
2023-12-07 17:07:42 +01:00
ionutboangiu
a057b34505
Use simple string concatenation to build URI
...
No need to keep the Parse call as a validation step since
any issue would be caught when establishing a connection.
Renamed buildURL to composeURI.
2023-12-07 17:07:42 +01:00
ionutboangiu
b502920b0b
Revise buildURL function
...
The RawQuery field would not be properly populated in
the old implementation. Has been fixed by calling the
Parse function at the end.
2023-12-07 17:07:42 +01:00
ionutboangiu
38578524da
Upgrade MongoDB driver to v1.12
...
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive for v1.12 compatibility
- Use simple concatenation instead of Sprintf
- Declare 'decimalType' locally, replace global 'decimalType'
- Simplify several functions without altering functionality
- Converting directly from a D to an M is deprecated. We are now decoding
directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Revised sloppy reassignments and added missing error checks
2023-10-27 18:51:01 +02:00
arberkatellari
5f04bcfe66
Add locks for dns service and agent
2023-06-27 11:06:27 +02:00
ionutboangiu
6c16ff320f
Replace interface{} with any
2023-05-31 10:23:12 +02:00
gezimbll
5c4bf0e538
changing db type constants with leading *
2023-03-08 19:15:23 +01:00
ionutboangiu
aaea87eb33
Make data and stordb opts into structs
2022-07-12 17:59:09 +02:00
porosnicuadrian
f204d474bd
Added DSN params for sql exporter and storDB
2022-01-12 11:56:29 +01:00
Trial97
291a959ec8
Updated internal dataDB
2021-10-21 14:30:20 +03:00
Trial97
239cbb7365
Updated Redis storage
2021-10-08 11:12:04 +03:00
andronache
bc4979b74a
Renamed opts for DataDB and StorDB
2021-05-06 13:57:30 +02:00
Trial97
c13a5cf790
Finished implementing the DataNode as a replacement
2021-03-26 13:46:25 +01:00
andronache
0d36b0cecf
Changed Opts in structs in apier to APIOpts
2021-03-23 14:35:11 +01:00
andronache
806c8295be
Finished changing Opts to APIOpts for structs used in api_interfaces
2021-03-23 14:35:11 +01:00
Trial97
f2c9ca3530
Fixed typo in license header
2021-03-10 16:22:37 +01:00
Trial97
6aa28fc9f5
Added MySQL Location as an option for storDB
2021-02-26 17:23:53 +01:00
andronache
4ff3b9242d
Consts in utils
2021-01-07 18:15:35 +01:00
andronache
dbb9216b6e
Modified consts in utils
2021-01-07 18:15:35 +01:00
andronache
570356b459
Changed consts in utils and repaired account profiles it testin apier/v1
2021-01-07 18:15:35 +01:00
TeoV
f1c823761b
[DataDB] Add support for redis with TLS connection ( + integration test ) fixes #2435
2020-10-15 18:34:21 +02:00
TeoV
21120eb9b6
Add "redis_" prefix to "dataDB" option for redis
2020-10-15 12:42:28 +02:00
Trial97
6eb4be05c2
Updated mongoDB driver constructor
2020-09-04 12:32:09 +02:00
Trial97
4fe3b8e257
Removed TenantArg
2020-09-04 12:32:09 +02:00
Trial97
841264a97a
Moved all specific DB options in opts
2020-08-28 14:35:42 +02:00
Trial97
c1a96d21a4
Added support for Redis cluster
2020-08-07 09:27:02 +02:00
Trial97
cfebb0d616
Finished upgrading the Redis driver
2020-08-07 09:27:02 +02:00
Trial97
11dac21b88
Starting replacing ArgDispatcher with Opts
2020-07-30 11:17:57 +02:00
TeoV
c7b7740c27
Add support for Mongo for different Marshaler
2020-03-02 10:10:57 +01:00
TeoV
35d19ab4b2
Add TTL option for DataDB/StorDB for type *internal
2020-01-14 08:42:10 -05:00
Trial97
28cc543389
Updated NewInternalDB
2019-12-02 11:07:48 +02:00
DanB
33483edc93
Modified NewInternalDB signature to include encoding, renamed MetaJSONRpc -> MetaJSON
2019-11-29 20:54:32 +01:00
Trial97
f6bbccb213
Remove redundant functions
2019-11-09 15:55:49 +01:00
TeoV
722f74f652
Update integration tests
2019-10-30 14:43:10 +01:00
Trial97
8d655d8b57
Added sslmode for storDB config. Fixes#1715
2019-10-28 18:00:32 +01:00
Trial97
61fc8c98a3
Added DataManager as Service
2019-10-28 12:17:15 +01:00
TeoV
d3e7867535
Add StorDBPrefixIndexedFields for customize cdr indexes for InternalDB
2019-10-04 20:17:40 +02:00
TeoV
cf7a397c4c
Implement a model for get/set CDRs for InternalDB
2019-10-04 20:17:40 +02:00