1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2025-09-17 08:56:42 +02:00

Split database access into RW and RO

The indexer need to be able to write to the database, but the API only
needs to read it.
This commit is contained in:
2018-09-24 00:00:05 +03:00
parent c554404d7f
commit 89621af85d
3 changed files with 12 additions and 5 deletions

4
app.py
View File

@@ -3,11 +3,11 @@
# https://wiki.duraspace.org/display/DSPACE/Solr
from config import SOLR_CORE
from database import database_connection
from database import database_connection_ro
import falcon
from solr import solr_connection
db = database_connection()
db = database_connection_ro()
solr = solr_connection()
class ItemResource: