Giter Site home page Giter Site logo

最好提供多表支持 about jrdb HOT 4 CLOSED

scubers avatar scubers commented on August 26, 2024
最好提供多表支持

from jrdb.

Comments (4)

scubers avatar scubers commented on August 26, 2024

好的,您的意见小弟会研究采纳
您说的需求表的功能都一样,为什么要分成两张表呢,用一个用户ID就可以区别了,如果是需要严格区分用户的,可以每个用户一个数据库,这样逻辑操作也不回混乱~~

from jrdb.

amjunliang avatar amjunliang commented on August 26, 2024

issue的目的不是这个需求, 而是支持多表, 让我知道我的数据存储在哪儿了, 使用数据库的人肯定都知道基本的,数据库-表 ,这个结构,
当然需求的实现有很多种, 我这个需求示例是说,切换用户保留缓存, 我觉得多表操作会更好, ToDoListTable_%@,user.id ,我只需要维护一套数据库, 切换用户的时候根据变量找对应的表. 逻辑完全不动

from jrdb.

scubers avatar scubers commented on August 26, 2024

库的目的就是简化和屏蔽数据库操作,使用的时候不需要知道实际存储的位置和结构,就像CoreData,也无法得知内部操作原理。

另外同一表结构对应多张表的实现方案也在规划中~~,希望之后的更新中能给你提供更好的帮助

from jrdb.

amjunliang avatar amjunliang commented on August 26, 2024

🐎 感谢开源

from jrdb.

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.