Giter Site home page Giter Site logo

joist's Introduction

Joist is an ORM based on code generation.

The goal is to provide Rails-like "empty domain objects" in an ORM that is simple, pleasant to use, and scales nicely to really large schemas.

See joist.ws for more information.

Build against MySQL

The Joist test suite requires running tests against a local database; to use MySQL for this:

  • Edit features/build.properties (which is not checked in) and set your local MySQL password

    On a clean ~18.04 Ubuntu, see this SO answer to set your local root password.

  • Run ./gradlew install

Build against Postgres

The Joist test suite requires running tests against a local database; to use Postgres for this:

  • Edit features/build-pg.properties (which is not checked in) and set your local postgres user/admin password

    On a clean Ubuntu, Postgres's admin user/password is configured by:

    • sudo -u postgres psql postgres and then \password postgres to set your local admin password
    • In postgresql.conf ensure listen_addresses is set
  • Edit features/.../Registry.java and change the db field to Db.PG

  • Edit features/.../JoistCli.java and change the db field to Db.PG

  • Run ./gradlew install

Note that because of Postgres's ability to defer FK constraints, the features/.../codegen output will all change as the MySQL version is currently checked-in.

Todo

  • Composite columns (e.g. TimePoint with both time+zone), if needed
  • Don't muck with system properties
  • Repo interfaces
    • Implement stub that copies values (iterates Alias, toJdbcValue, ArrayList<Object>)
    • Only one commit/flush at a time, serialized transaction isolation, leverage op locks
  • Configuration option (global, per-collection) to disable collection ticking
    • ...maybe remove/solve annoyance of cross-collection stomp?
  • Document PostgreSQL/MySQL no fsync settings for faster tests

joist's People

Contributors

stephenh avatar mdietz198 avatar cbrentharris avatar ianvkoeppe avatar jcarver989 avatar ogrodnek avatar

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.