Skip to content

Releases: oyvindberg/typo

0.26.0

17 Aug 11:25
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.25.0...v0.26.0

0.25.0

09 Aug 11:53
346eda2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.24.0...v0.25.0

0.24.0

26 Jul 00:01
859b8b4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.23.0...v0.24.0

0.23.0

16 Jul 09:01
098a1bc
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.22.2...v0.23.0

Breaking changes

Need to overwriteFolder multiple source directories

generateFromDb(
  ds,
  options, 
  targetFolder = targetDir,
  testTargetFolder = Some(testTargetDir),
   selector = selector, 
   scriptsPaths = List(scriptsFolder)
-).overwriteFolder()
+).foreach(_.overwriteFolder())
 
 // add changed files to git, so you can keep them under control
 //scala.sys.process.Process(List("git", "add", targetDir.toString)).!!

need to provide a TypoDataSource instead of a java.sql.Connection

 // adapt to your instance and credentials
-implicit val c: java.sql.Connection =
-  java.sql.DriverManager.getConnection("jdbc:postgresql://localhost:6432/postgres?user=postgres&password=password")
+val ds = TypoDataSource.hikari(
+  server = "localhost", 
+  port = 6432, 
+  databaseName = "Adventureworks", 
+  username = "postgres", 
+  password = "password"
+)
 
 val options = Options(
   // customize package name for generated code
@@ -67,6 +72,7 @@
 val selector = Selector.ExcludePostgresInternal
 
 generateFromDb(
+  ds,
   options, 
   targetFolder = targetDir,
   testTargetFolder = Some(testTargetDir),

customization of Id type names

Signature of typo.Naming#idName changed so you also get a representation of all columns in the ID type, which can help you name it.

0.22.2

08 Jul 11:36
Compare
Choose a tag to compare

Full Changelog: v0.22.1...v0.22.2

0.22.1

04 Jul 20:30
Compare
Choose a tag to compare

Full Changelog: v0.22.0...v0.22.1

0.22.0

28 Jun 07:34
Compare
Choose a tag to compare

Full Changelog: v0.21.0...v0.22.0

0.21.0

24 Jun 06:54
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.20.0...v0.21.0

0.20.0

14 Jun 08:36
Compare
Choose a tag to compare

Full Changelog: v0.19.1...v0.20.0

  • testInsert: randomize uuid
  • unary id type: emit shortcut method when underlying type is domain
  • Naming.camelCase should lowercase first letter
  • testInsert: fix randomization details for fks
  • Use squiggle lists for joins

0.19.1

11 Jun 12:25
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.19.0...v0.19.1