From 47bbc42e1c297b1ac6558a16e0e5a9909bc8188e Mon Sep 17 00:00:00 2001 From: Sakib Hadziavdic Date: Fri, 6 Sep 2024 17:23:25 +0200 Subject: [PATCH] Update docs --- DEV.md | 2 +- docs/src/files/tutorials/CodeGen.scala | 2 +- docs/src/files/tutorials/GettingStarted.scala | 10 +++++----- docs/src/utils/Consts.scala | 2 +- examples/cli/hello.sc | 2 +- .../src/ba/sake/squery/generator/SqueryGenerator.scala | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/DEV.md b/DEV.md index dd04211..fcd759d 100644 --- a/DEV.md +++ b/DEV.md @@ -19,7 +19,7 @@ git diff git commit -am "msg" -$VERSION="0.6.1" +$VERSION="0.6.2" git commit --allow-empty -am "Release $VERSION" git tag -a $VERSION -m "Release $VERSION" git push --atomic origin main $VERSION diff --git a/docs/src/files/tutorials/CodeGen.scala b/docs/src/files/tutorials/CodeGen.scala index c2a4372..ba28928 100644 --- a/docs/src/files/tutorials/CodeGen.scala +++ b/docs/src/files/tutorials/CodeGen.scala @@ -44,7 +44,7 @@ object CodeGen extends TutorialPage { // if using Postgres JSONB // import $$ivy.`ba.sake::squery-postgres-jawn:${Consts.ArtifactVersion}` - // import ba.sake.squery.postgres.jawn.* + // import ba.sake.squery.postgres.jawn.{*, given} val dataSource = HikariDataSource() dataSource.setJdbcUrl("jdbc:postgresql://localhost:5432/mydb") diff --git a/docs/src/files/tutorials/GettingStarted.scala b/docs/src/files/tutorials/GettingStarted.scala index 3c18b50..1ded6f3 100644 --- a/docs/src/files/tutorials/GettingStarted.scala +++ b/docs/src/files/tutorials/GettingStarted.scala @@ -21,11 +21,11 @@ object GettingStarted extends TutorialPage { ```scala import ba.sake.squery.{*, given} // import one of these if needed: - // import ba.sake.squery.postgres.given - // import ba.sake.squery.mysql.given - // import ba.sake.squery.mariadb.given - // import ba.sake.squery.oracle.given - // import ba.sake.squery.h2.given + // import ba.sake.squery.postgres.{*, given} + // import ba.sake.squery.mysql.{*, given} + // import ba.sake.squery.mariadb.{*, given} + // import ba.sake.squery.oracle.{*, given} + // import ba.sake.squery.h2.{*, given} val ds = com.zaxxer.hikari.HikariDataSource() ds.setJdbcUrl(..) diff --git a/docs/src/utils/Consts.scala b/docs/src/utils/Consts.scala index e505dbf..187781f 100644 --- a/docs/src/utils/Consts.scala +++ b/docs/src/utils/Consts.scala @@ -6,7 +6,7 @@ object Consts: val ArtifactOrg = "ba.sake" val ArtifactName = "squery" - val ArtifactVersion = "0.6.1" + val ArtifactVersion = "0.6.2" val GhHandle = "sake92" val GhProjectName = "squery" diff --git a/examples/cli/hello.sc b/examples/cli/hello.sc index 4a93c20..1347646 100644 --- a/examples/cli/hello.sc +++ b/examples/cli/hello.sc @@ -1,5 +1,5 @@ //> using scala "3.3.1" -//> using dep "ba.sake::squery:0.6.1" +//> using dep "ba.sake::squery:0.6.2" //> using dep "com.h2database:h2:2.1.214" //> using dep "com.lihaoyi::pprint:0.9.0" diff --git a/generator/src/ba/sake/squery/generator/SqueryGenerator.scala b/generator/src/ba/sake/squery/generator/SqueryGenerator.scala index b558904..d92a1f4 100644 --- a/generator/src/ba/sake/squery/generator/SqueryGenerator.scala +++ b/generator/src/ba/sake/squery/generator/SqueryGenerator.scala @@ -608,6 +608,6 @@ object SqueryGeneratorConfig { colNameIdentifierMapper = NameMapper.CamelCase, typeNameMapper = NameMapper.CamelCase, rowTypeSuffix = "Row", - daoTypeSuffix = "CrudDao" + daoTypeSuffix = "Dao" ) }