Giter Site home page Giter Site logo

cormo's People

Contributors

dependabot[bot] avatar devjeon1358 avatar graynun avatar humy2833 avatar iox avatar june1123 avatar luaneyed avatar seoyeongb avatar sixmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cormo's Issues

Transaction rollback does not work

try {
    await Connection.transaction({ models: [ModelClass] }, (ModelClassTx) => {
      // [Job 1] do something using ModelClassTx
      throw new Error('An intentional error');
      // [Job 2] do something using ModelClassTx

      return Promise.resolve();
    });
  } catch (error) {
    return { error };
  }

I expect the above code affect nothing to db, but Job 1 is committed!
Exactly, the job is committed when MySQLAdapter::rollbackTransaction is executed.

Bug when MySQL reserved words used as column (or table)

Error

await ZigzagFAQCategory.group(null, { current_order: { $max: '$order' } })와 같이 칼럼명을 MySQL 예약어(order)로 사용하는 경우 에러 발생

Expected

await ZigzagFAQCategory.group(null, { current_order: { $max: '$`order`' } })와 같이 `로 감싸줘서 임시방편으로 에러를 피해서 사용할 수 있긴 하지만, 예약어와 동일한 네이밍도 일반적으로 사용할 수 있으면 좋을 것 같습니다.

ITxModelClass selectSingle

selectSingleIQuerySingleIQueryArray에만 있는데,
select처럼 ITxModelClass에도 있으면 .where() 같은 거 안 해도 돼서 좋겠습니다.

Export adapter classes

When writing raw query like (connection as any).adapter.query, typescript cannot guarantee that query method exists.

Hot swap for console

It will be convenient if modules are reloaded automatically for CORMO console

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.