/* Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see */ package migrator import ( "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/utils" ) func newInternalStorDBMigrator(stor engine.StorDB) (iDBMig *internalStorDBMigrator) { return &internalStorDBMigrator{ storDB: &stor, iDB: stor.(*engine.InternalDB), } } type internalStorDBMigrator struct { storDB *engine.StorDB iDB *engine.InternalDB } func (iDBMig *internalStorDBMigrator) close() {} func (iDBMig *internalStorDBMigrator) StorDB() engine.StorDB { return *iDBMig.storDB } // CDR methods // get func (iDBMig *internalStorDBMigrator) getV1CDR() (v1Cdr *v1Cdrs, err error) { return nil, utils.ErrNotImplemented } // set func (iDBMig *internalStorDBMigrator) setV1CDR(v1Cdr *v1Cdrs) (err error) { return utils.ErrNotImplemented } // rem func (iDBMig *internalStorDBMigrator) remV1CDRs(v1Cdr *v1Cdrs) (err error) { return utils.ErrNotImplemented } // SMCost methods // rename func (iDBMig *internalStorDBMigrator) renameV1SMCosts() (err error) { return utils.ErrNotImplemented } func (iDBMig *internalStorDBMigrator) createV1SMCosts() (err error) { return utils.ErrNotImplemented } // get func (iDBMig *internalStorDBMigrator) getV2SMCost() (v2Cost *v2SessionsCost, err error) { return nil, utils.ErrNotImplemented } // set func (iDBMig *internalStorDBMigrator) setV2SMCost(v2Cost *v2SessionsCost) (err error) { return utils.ErrNotImplemented } // remove func (iDBMig *internalStorDBMigrator) remV2SMCost(v2Cost *v2SessionsCost) (err error) { return utils.ErrNotImplemented }