Coder Social home page Coder Social logo

Comments (7)

qiaoyuang avatar qiaoyuang commented on June 17, 2024

可以直接使用 sqllin-driver,详见 sqllin-driver 的 README

from sqllin.

selcarpa avatar selcarpa commented on June 17, 2024

看这份README中说不建议直接使用,虽然我确实是直接使用的,因为openDatabase最终还是返回的一个DatabaseConnection。
我暂时没有详细阅读源码,不确定这种方式是否能同步使用sqllin dsl的事务呢?

from sqllin.

qiaoyuang avatar qiaoyuang commented on June 17, 2024

可以,有 driver 级别的 transaction API。我写不建议使用主要是因为有 sqllin-dsl 的存在,大多数时候没有必要直接使用 sqllin-driver

from sqllin.

selcarpa avatar selcarpa commented on June 17, 2024

好的,感谢,希望也添加一下相关说明。

from sqllin.

qiaoyuang avatar qiaoyuang commented on June 17, 2024

哪部分的说明?driver 层详细的 API 使用文档吗

from sqllin.

selcarpa avatar selcarpa commented on June 17, 2024

from sqllin.

qiaoyuang avatar qiaoyuang commented on June 17, 2024

可以,有空的时候我可以再添加一些内容。其实 transaction 属于 SQLite 的能力,sqllin-driver 拥有完整的 SQLite 能力,sqllin-dsl 只是在其之上实现了 SQL 语句的 DSL 化,sqllin-dsl 不会包含任何底层 SQLite API 级别的实现。

from sqllin.

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.