sqlmap_json.go 373 B

123456789101112131415161718192021
  1. package xorm
  2. type JsonSqlMap struct {
  3. sqlMapRootDir string
  4. extension string
  5. }
  6. func Json(directory, extension string) *JsonSqlMap {
  7. return &JsonSqlMap{
  8. sqlMapRootDir: directory,
  9. extension: extension,
  10. }
  11. }
  12. func (sqlMap *JsonSqlMap) RootDir() string {
  13. return sqlMap.sqlMapRootDir
  14. }
  15. func (sqlMap *JsonSqlMap) Extension() string {
  16. return sqlMap.extension
  17. }