MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Kotlin 数据库框架有何建议?

    开发交流
    2
    5
    78
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jie65535
      jie65535 last edited by

      例如,我需要访问远程mysql,或者本地SQLite,在mirai-console的环境中,最佳做法是什么?
      直接使用jdbc操作?还是使用一些ORM?有什么建议?

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        直接使用jdbc或者是使用orm都行,但是你可能需要自行配置这些组件让他能正常与你的插件工作;不建议使用spring作为插件的依赖项

        jie65535 1 Reply Last reply Reply Quote 0
        • jie65535
          jie65535 @RainChan last edited by

          @rainchan 好的,如果我使用ORM的话,有什么推荐的框架吗?

          1 Reply Last reply Reply Quote 0
          • RainChan
            RainChan 摸鱼 last edited by

            我单独配置过的只有jooq,但是事实我没有搞懂究竟应该如何才能很好使用他。。。。其他的orm你可以自己试试看

            jie65535 1 Reply Last reply Reply Quote 0
            • jie65535
              jie65535 @RainChan last edited by

              @rainchan 好的,感谢回复。

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact us