mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Continued MySQL/PostgreSQL store provider refactoring
Refactored, renamed, removed storage related code. Basic smoke test passed for PostgreSQL whilst fully working on MySQL variants as per usual.
This commit is contained in:
parent
b455e5eaf5
commit
97beb3f4d3
81 changed files with 1454 additions and 1497 deletions
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/documize/community/core/uniqueid"
|
||||
"github.com/documize/community/domain"
|
||||
"github.com/documize/community/domain/permission"
|
||||
"github.com/documize/community/domain/store"
|
||||
"github.com/documize/community/model/audit"
|
||||
"github.com/documize/community/model/block"
|
||||
)
|
||||
|
@ -30,7 +31,7 @@ import (
|
|||
// Handler contains the runtime information such as logging and database.
|
||||
type Handler struct {
|
||||
Runtime *env.Runtime
|
||||
Store *domain.Store
|
||||
Store *store.Store
|
||||
}
|
||||
|
||||
// Add inserts new reusable content block into database.
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
// Store provides data access to section template information.
|
||||
type Store struct {
|
||||
store.Context
|
||||
domain.BlockStorer
|
||||
store.BlockStorer
|
||||
}
|
||||
|
||||
// Add saves reusable content block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue