Code Monkey home page Code Monkey logo

Comments (5)

netyouli avatar netyouli commented on July 19, 2024
  • (NSString *)whc_SqlitePath是绝对路径,因为之前收到有人说想自定义路径放到其他路径下面所以就有这个方法,这个版本号查询没有关系,只要自定义了路径,后面相关操作都是会优先自定义路径来查询然后才是默认路径的。所以没有关系的
    + (NSString *)databaseCacheDirectory:(Class)model_class { if (model_class) { NSString * custom_path = [self exceSelector:@selector(whc_SqlitePath) modelClass:model_class]; if (custom_path != nil && custom_path.length > 0) { return custom_path; } } return [NSString stringWithFormat:@"%@/Library/Caches/WHCSqlite/",NSHomeDirectory()]; }

from whc_modelsqlitekit.

LDXu avatar LDXu commented on July 19, 2024

第一个问题是涉及到路径
第二个问题是涉及数据迁移,返回一个字典自动迁移文件,具体看下提交的,不知道那样处理是否正确

from whc_modelsqlitekit.

netyouli avatar netyouli commented on July 19, 2024

不需要迁移的,迁移了自定义路径就没有意义了

from whc_modelsqlitekit.

LDXu avatar LDXu commented on July 19, 2024

要迁移的吧,以前就使用这个数据的话,都存在默认目录上,自定义以后都是去自定义的路径查找了,需要把原文件移动到自定义目录里面

from whc_modelsqlitekit.

netyouli avatar netyouli commented on July 19, 2024

哦你说这个,理论上是的

from whc_modelsqlitekit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.