You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

converstion.go 398B

123456789101112
  1. // Copyright 2019 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package core
  5. // Conversion is an interface. A type implements Conversion will according
  6. // the custom method to fill into database and retrieve from database.
  7. type Conversion interface {
  8. FromDB([]byte) error
  9. ToDB() ([]byte, error)
  10. }