github.com/condensat/bank-core@v0.1.0/database/types.go (about)

     1  // Copyright 2020 Condensat Tech. All rights reserved.
     2  // Use of this source code is governed by a MIT
     3  // license that can be found in the LICENSE file.
     4  
     5  package database
     6  
     7  type Model interface{}
     8  
     9  // Database (GORM)
    10  type DB interface{}
    11  
    12  type Context interface {
    13  	DB() DB
    14  
    15  	Migrate(models []Model) error
    16  	Transaction(txFunc func(tx Context) error) error
    17  }