Coder Social home page Coder Social logo

Comments (1)

qiaoyuang avatar qiaoyuang commented on June 17, 2024

设计理念不同,SQLlin 中每次 database 作用域展开可以构建并执行多条 SQL 语句,而唯一需要获取结果的查询语句可自由穿插其中,无法用一个泛型 Flow 返回多种不同类型的查询结果。Room 的设计是调用一次函数就执行一条语句,因此易于使用 Flow 保存结果,并交给用户订阅获取。此外,基于中缀函数和作用域函数构建的 DSL 与链式调用本来就不是一个风格,在 DSL 块后面进行 Flow 的链式调用在代码风格上并不是一个好选择,目前你可以使用 flow {} 函数包裹 DSL 块,获取 flow 对象后再进行链式调用,这样代码风格更佳。因此现阶段 SQLlin 不是很有内置转换成 Flow 的必要。

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.