Coder Social home page Coder Social logo

querio's People

Contributors

arechitsky avatar izhleba avatar winmain avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

querio's Issues

Support of Long primary keys.

Key points
Table.scala:

def _primaryKey: Option[Field[Int, Int]]
TableGenerator.scala:

 val primaryKey: Option[InnerCol] = if (primaryKeyNames.nonEmpty) {
      val pkName = primaryKeyNames.head
      val pk = columns.find(_.rs.name == pkName).getOrElse(sys.error(s"Field for primary key not found in ${table.cat}.${table.name}"))
      if (pk.shortScalaType == "Int") Some(pk) else None
    } else None

Support for NOT in conditions

If condition1 and condition2 are Conditions, sometimes one need something like condition1 && !condition2, but ! does not supported in current version.

DatabaseGenerator accidentally deletes `var` fields in MutableTableRecord

For example:

class MutableDbVehicle extends MutableTableRecord[DbVehicle] {
  var id: Int = _
  var extId: Int = _

  def _table = DbVehicle
  def _primaryKey: Int = id
  def _setPrimaryKey($: Int): Unit = id = $

  var updateFilter: VehUpdateFilter = _
}

In this code invoking DatabaseGenerator will ends with deleting line var updateFilter

querio ver 0.6.5

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.