winmain / querio Goto Github PK
View Code? Open in Web Editor NEWScala ORM, DSL, and code generator for database queries
License: Other
Scala ORM, DSL, and code generator for database queries
License: Other
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
If condition1 and condition2 are Conditions, sometimes one need something like condition1 && !condition2, but !
does not supported in current version.
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
fetchOne() returns Some(null) instead of None
Current LocalDateTimeField and TimestampField both store datetime with default timezone, need field for storing UTC datetime
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.