github.com/cosmos/cosmos-sdk@v0.50.10/x/group/internal/orm/genesis.go (about) 1 package orm 2 3 import storetypes "cosmossdk.io/store/types" 4 5 // TableExportable defines the methods to import and export a table. 6 type TableExportable interface { 7 // Export stores all the values in the table in the passed 8 // ModelSlicePtr. If the table has an associated sequence, then its 9 // current value is returned, otherwise 0 is returned by default. 10 Export(store storetypes.KVStore, dest ModelSlicePtr) (uint64, error) 11 12 // Import clears the table and initializes it from the given data 13 // interface{}. data should be a slice of structs that implement 14 // PrimaryKeyed. The seqValue is optional and only 15 // used with tables that have an associated sequence. 16 Import(store storetypes.KVStore, data interface{}, seqValue uint64) error 17 }