├── .dockerignore ├── .editorconfig ├── gradle.properties ├── website ├── deploy_website.sh ├── static │ ├── api │ │ ├── actionmailer │ │ │ ├── package-list │ │ │ ├── alltypes.html │ │ │ ├── index.html │ │ │ └── index-outline.html │ │ ├── activejob │ │ │ ├── package-list │ │ │ ├── alltypes.html │ │ │ ├── index.html │ │ │ └── index-outline.html │ │ ├── activestorage │ │ │ ├── package-list │ │ │ ├── alltypes.html │ │ │ ├── index.html │ │ │ └── index-outline.html │ │ ├── activesupport │ │ │ ├── package-list │ │ │ ├── alltypes.html │ │ │ ├── index.html │ │ │ └── index-outline.html │ │ ├── actionpack │ │ │ ├── package-list │ │ │ ├── kales.actionpack │ │ │ │ ├── -view-model.html │ │ │ │ ├── -kales-application-call │ │ │ │ │ ├── request.html │ │ │ │ │ ├── response.html │ │ │ │ │ ├── attributes.html │ │ │ │ │ ├── parameters.html │ │ │ │ │ ├── application.html │ │ │ │ │ └── receive-parameters.html │ │ │ │ ├── -application-controller │ │ │ │ │ ├── call.html │ │ │ │ │ ├── bindings.html │ │ │ │ │ └── receive-parameters.html │ │ │ │ ├── -dynamic-parameter-route-selector │ │ │ │ │ ├── name.html │ │ │ │ │ ├── value.html │ │ │ │ │ └── to-string.html │ │ │ │ └── -redirect-result │ │ │ │ │ └── new-action-name.html │ │ │ └── index.html │ │ ├── activerecord │ │ │ ├── package-list │ │ │ ├── index.html │ │ │ ├── kales.migrations │ │ │ │ ├── -migration │ │ │ │ │ └── -init-.html │ │ │ │ └── -kales-database-config │ │ │ │ │ ├── host.html │ │ │ │ │ ├── adapter.html │ │ │ │ │ ├── database.html │ │ │ │ │ ├── password.html │ │ │ │ │ ├── username.html │ │ │ │ │ ├── environment.html │ │ │ │ │ └── to-string.html │ │ │ └── alltypes │ │ │ │ └── index.html │ │ ├── actionview │ │ │ ├── package-list │ │ │ ├── kales.actionview │ │ │ │ ├── -view-model.html │ │ │ │ ├── -kales-form-method │ │ │ │ │ ├── get.html │ │ │ │ │ ├── put.html │ │ │ │ │ ├── post.html │ │ │ │ │ ├── patch.html │ │ │ │ │ └── delete.html │ │ │ │ ├── -action-view │ │ │ │ │ ├── call.html │ │ │ │ │ └── bindings.html │ │ │ │ ├── -application-layout │ │ │ │ │ ├── call.html │ │ │ │ │ └── body.html │ │ │ │ ├── -action-partial-view │ │ │ │ │ └── bindings.html │ │ │ │ ├── -render-view-result │ │ │ │ │ ├── action-name.html │ │ │ │ │ └── view.html │ │ │ │ ├── -redirect-result │ │ │ │ │ └── new-action-name.html │ │ │ │ └── proxied-form-methods.html │ │ │ └── index.html │ │ ├── kales │ │ │ ├── package-list │ │ │ ├── index.html │ │ │ ├── kales │ │ │ │ └── -kales-application │ │ │ │ │ ├── routing.html │ │ │ │ │ ├── logger.html │ │ │ │ │ └── layout.html │ │ │ └── alltypes │ │ │ │ └── index.html │ │ ├── activemodel │ │ │ ├── package-list │ │ │ ├── kales │ │ │ │ ├── -application-record │ │ │ │ │ ├── -j-d-b-i.html │ │ │ │ │ └── id.html │ │ │ │ └── -maybe-record-id-column-mapper │ │ │ │ │ └── -init-.html │ │ │ ├── kales.activemodel │ │ │ │ ├── -belongs-to-association-impl │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── hash-code.html │ │ │ │ ├── -record-id │ │ │ │ │ ├── value.html │ │ │ │ │ └── to-string.html │ │ │ │ ├── -belongs-to-association │ │ │ │ │ └── value.html │ │ │ │ ├── -has-many-association-impl │ │ │ │ │ ├── size.html │ │ │ │ │ ├── clear.html │ │ │ │ │ ├── hash-code.html │ │ │ │ │ └── is-empty.html │ │ │ │ └── -none-id.html │ │ │ ├── kales.internal │ │ │ │ ├── -maybe-record-id-argument-factory │ │ │ │ │ └── -init-.html │ │ │ │ ├── -record-query-builder │ │ │ │ │ └── all-records.html │ │ │ │ └── -k-application-record-class │ │ │ │ │ └── as-symbol.html │ │ │ └── index.html │ │ ├── harmonica │ │ │ ├── package-list │ │ │ ├── com.improve_future.harmonica.core │ │ │ │ ├── -dbms │ │ │ │ │ ├── -h2.html │ │ │ │ │ ├── -my-s-q-l.html │ │ │ │ │ ├── -oracle.html │ │ │ │ │ ├── -s-q-lite.html │ │ │ │ │ ├── -s-q-l-server.html │ │ │ │ │ └── -postgre-s-q-l.html │ │ │ │ ├── -index │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ │ ├── -database │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ │ ├── -abstract-migration │ │ │ │ │ ├── -init-.html │ │ │ │ │ ├── config.html │ │ │ │ │ ├── connection.html │ │ │ │ │ └── up.html │ │ │ │ ├── -db-config │ │ │ │ │ ├── dbms.html │ │ │ │ │ ├── port.html │ │ │ │ │ ├── sslmode.html │ │ │ │ │ ├── user.html │ │ │ │ │ ├── host.html │ │ │ │ │ └── password.html │ │ │ │ ├── -raw-sql │ │ │ │ │ └── sql.html │ │ │ │ ├── -connection-interface │ │ │ │ │ └── config.html │ │ │ │ └── -connection │ │ │ │ │ ├── close.html │ │ │ │ │ └── config.html │ │ │ ├── com.improve_future.harmonica.core.table │ │ │ │ ├── -index-method │ │ │ │ │ ├── -hash.html │ │ │ │ │ ├── -b-tree.html │ │ │ │ │ ├── -gin.html │ │ │ │ │ ├── -b-rin.html │ │ │ │ │ ├── -gist.html │ │ │ │ │ └── -sp-gist.html │ │ │ │ └── -table-builder │ │ │ │ │ ├── -init-.html │ │ │ │ │ ├── id.html │ │ │ │ │ └── table-name.html │ │ │ ├── com.improve_future.harmonica.config │ │ │ │ ├── index.html │ │ │ │ └── -plugin-config │ │ │ │ │ ├── group-name.html │ │ │ │ │ └── has-exposed.html │ │ │ ├── com.improve_future.harmonica.core.config │ │ │ │ ├── -my-sql-config │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ │ ├── -oracle-config │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ │ └── -postgre-sql-config │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ ├── com.improve_future.harmonica.service │ │ │ │ └── index.html │ │ │ ├── com.improve_future.harmonica.task │ │ │ │ ├── -jarmonica-task-main │ │ │ │ │ └── -init-.html │ │ │ │ └── index.html │ │ │ └── com.improve_future.harmonica.core.table.column │ │ │ │ ├── -abstract-column │ │ │ │ ├── name.html │ │ │ │ ├── nullable.html │ │ │ │ ├── has-comment.html │ │ │ │ ├── has-default.html │ │ │ │ ├── comment.html │ │ │ │ ├── has-reference.html │ │ │ │ └── --index--.html │ │ │ │ └── -text-column │ │ │ │ └── default.html │ │ ├── kales-cli │ │ │ ├── kales.cli │ │ │ │ ├── -cli │ │ │ │ │ └── -init-.html │ │ │ │ ├── -new │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -version │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -db-create │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -generate │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── index.html │ │ │ │ ├── -db-migrate │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -generate-view │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -generate-model │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -generate-migration │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ ├── -generate-controller │ │ │ │ │ ├── -init-.html │ │ │ │ │ └── run.html │ │ │ │ └── working-dir.html │ │ │ ├── index.html │ │ │ └── kales.cli.task │ │ │ │ ├── -kales-version-task │ │ │ │ ├── -init-.html │ │ │ │ ├── run.html │ │ │ │ └── kales-version.html │ │ │ │ ├── -kales-task │ │ │ │ └── run.html │ │ │ │ ├── -kales-contextual-task │ │ │ │ ├── resources-dir.html │ │ │ │ ├── application-root-dir.html │ │ │ │ └── db-migrate-dir.html │ │ │ │ ├── -db-create-task │ │ │ │ ├── run.html │ │ │ │ └── -init-.html │ │ │ │ ├── -db-migrate-task │ │ │ │ └── run.html │ │ │ │ ├── -generate-view-task │ │ │ │ └── run.html │ │ │ │ ├── -generate-model-task │ │ │ │ └── run.html │ │ │ │ ├── -new-application-task │ │ │ │ └── run.html │ │ │ │ ├── -generate-migration-task │ │ │ │ └── run.html │ │ │ │ └── -generate-controller-task │ │ │ │ └── run.html │ │ └── sampleapp │ │ │ ├── kales.sample.app.models │ │ │ ├── -post │ │ │ │ ├── id.html │ │ │ │ ├── save.html │ │ │ │ ├── title.html │ │ │ │ ├── destroy.html │ │ │ │ ├── content.html │ │ │ │ └── comments.html │ │ │ └── -comment │ │ │ │ ├── id.html │ │ │ │ ├── comment_text.html │ │ │ │ └── post.html │ │ │ ├── kales.sample │ │ │ ├── main.html │ │ │ └── io.ktor.application.-application │ │ │ │ └── module.html │ │ │ ├── package-list │ │ │ ├── kales.sample.db.migrate │ │ │ ├── -m20190307090134_-create-comment │ │ │ │ ├── -init-.html │ │ │ │ ├── up.html │ │ │ │ └── down.html │ │ │ └── -m20190224204400_-create-posts-migration │ │ │ │ ├── -init-.html │ │ │ │ ├── up.html │ │ │ │ └── down.html │ │ │ ├── kales.sample.app.views.layouts │ │ │ ├── index.html │ │ │ └── -app-layout │ │ │ │ └── apply.html │ │ │ ├── kales.sample.app.views.posts │ │ │ ├── -index-view-model │ │ │ │ └── name.html │ │ │ ├── -post-view-model │ │ │ │ └── post.html │ │ │ └── -new-view │ │ │ │ └── render.html │ │ │ └── kales.sample.app.controllers │ │ │ ├── index.html │ │ │ └── -posts-controller │ │ │ ├── update.html │ │ │ ├── destroy.html │ │ │ ├── new.html │ │ │ ├── show.html │ │ │ ├── --index--.html │ │ │ └── create.html │ ├── img │ │ ├── jdbi.png │ │ ├── ktor.png │ │ ├── leaf.png │ │ ├── favicon.png │ │ ├── oss_logo.png │ │ └── favicon │ │ │ └── favicon.ico │ └── css │ │ └── custom.css ├── publish.sh ├── blog │ ├── 2017-09-26-adding-rss.md │ ├── 2017-10-24-new-version-1.0.0.md │ └── 2017-09-25-testing-rss.md ├── sidebars.json └── package.json ├── actionpack ├── src │ └── main │ │ └── kotlin │ │ └── kales │ │ └── actionpack │ │ ├── ViewModel.kt │ │ └── ActionResult.kt └── build.gradle ├── activemodel └── src │ ├── main │ └── kotlin │ │ └── kales │ │ ├── activemodel │ │ ├── Association.kt │ │ └── Util.kt │ │ ├── internal │ │ ├── StringExtensions.kt │ │ ├── MutableLazy.kt │ │ ├── LazyBelongsToAssociation.kt │ │ └── MaybeRecordIdArgumentFactory.kt │ │ ├── MaybeRecordIdColumnMapper.kt │ │ ├── JdbiFactory.kt │ │ ├── HasManyAssociationColumnMapperFactory.kt │ │ └── BelongsToAssociationColumnMapperFactory.kt │ └── test │ ├── resources │ └── database.yml │ └── kotlin │ └── kales │ └── internal │ ├── RecordUpdaterTest.kt │ └── KApplicationRecordClassTest.kt ├── gradle ├── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties └── deps.gradle ├── .gitignore ├── kales-cli └── src │ ├── main │ ├── kotlin │ │ └── kales │ │ │ └── cli │ │ │ └── task │ │ │ ├── KalesTask.kt │ │ │ └── DbCreateTask.kt │ └── resources │ │ ├── gradle-wrapper.bin │ │ └── META-INF │ │ └── services │ │ └── javax.script.ScriptEngineFactory │ └── test │ └── kotlin │ └── kales │ └── cli │ └── task │ └── PackageNameTest.kt ├── activerecord ├── libs │ └── harmonica-core-1.1.18.jar ├── src │ └── main │ │ └── kotlin │ │ └── kales │ │ └── migrations │ │ └── Migration.kt └── build.gradle ├── sampleapp ├── src │ └── main │ │ ├── resources │ │ └── database.yml │ │ └── kotlin │ │ └── kales │ │ └── sample │ │ ├── app │ │ └── views │ │ │ └── posts │ │ │ ├── PostViewModel.kt │ │ │ ├── IndexViewModel.kt │ │ │ ├── WriteCommentView.kt │ │ │ ├── CreateView.kt │ │ │ └── ShowView.kt │ │ ├── db │ │ └── migrate │ │ │ ├── M20190224204400_CreatePostsMigration.kt │ │ │ └── M20190307090134_CreateComment.kt │ │ ├── App.kt │ │ └── routes.kt ├── assets │ └── stylesheets │ │ └── sampleapp.css └── build.gradle ├── harmonica ├── README.md └── src │ ├── main │ └── kotlin │ │ └── com │ │ └── improve_future │ │ └── harmonica │ │ └── core │ │ ├── Index.kt │ │ ├── Database.kt │ │ ├── RawSql.kt │ │ └── config │ │ ├── MySqlConfig.kt │ │ └── OracleConfig.kt │ └── test │ └── kotlin │ └── com │ └── improve_future │ └── harmonica │ └── core │ └── DbConfigTest.kt ├── Dockerfile ├── kales ├── src │ ├── test │ │ └── kotlin │ │ │ └── kales │ │ │ └── test │ │ │ └── app │ │ │ ├── views │ │ │ └── test │ │ │ │ ├── CreateViewModel.kt │ │ │ │ ├── IndexViewModel.kt │ │ │ │ ├── CreateView.kt │ │ │ │ └── IndexView.kt │ │ │ └── TestAppLayout.kt │ └── main │ │ ├── resources │ │ └── logback.xml │ │ └── kotlin │ │ └── kales │ │ └── KalesPipelineContext.kt └── build.gradle ├── scripts └── release ├── activejob └── build.gradle ├── actionmailer └── build.gradle ├── activestorage └── build.gradle ├── activesupport └── build.gradle ├── local.properties ├── actionview ├── src │ └── main │ │ └── kotlin │ │ └── kales │ │ └── actionview │ │ ├── RenderViewResult.kt │ │ ├── ApplicationLayout.kt │ │ └── ActionPartialView.kt └── build.gradle ├── docker-compose.yml ├── REALEASING.md └── settings.gradle /.dockerignore: -------------------------------------------------------------------------------- 1 | */node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | [*.{kt,kts}] 2 | indent_size=2 -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | GROUP_ID=com.felipecsl.kales 2 | VERSION=0.0.8-SNAPSHOT -------------------------------------------------------------------------------- /website/deploy_website.sh: -------------------------------------------------------------------------------- 1 | GIT_USER=felipecsl CURRENT_BRANCH=master USE_SSH=true yarn run publish-gh-pages -------------------------------------------------------------------------------- /website/static/api/actionmailer/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | 5 | -------------------------------------------------------------------------------- /website/static/api/activejob/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | 5 | -------------------------------------------------------------------------------- /website/static/api/activestorage/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | 5 | -------------------------------------------------------------------------------- /website/static/api/activesupport/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | 5 | -------------------------------------------------------------------------------- /website/static/img/jdbi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/jdbi.png -------------------------------------------------------------------------------- /website/static/img/ktor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/ktor.png -------------------------------------------------------------------------------- /website/static/img/leaf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/leaf.png -------------------------------------------------------------------------------- /website/static/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/favicon.png -------------------------------------------------------------------------------- /website/static/img/oss_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/oss_logo.png -------------------------------------------------------------------------------- /actionpack/src/main/kotlin/kales/actionpack/ViewModel.kt: -------------------------------------------------------------------------------- 1 | package kales.actionpack 2 | 3 | interface ViewModel 4 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/activemodel/Association.kt: -------------------------------------------------------------------------------- 1 | package kales.activemodel 2 | 3 | interface Association -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | out/ 3 | .gradle/ 4 | .DS_Store 5 | build/ 6 | jd-gui.cfg 7 | *.iml 8 | node_modules/ 9 | scripts/bin -------------------------------------------------------------------------------- /website/static/api/actionpack/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | kales.actionpack 5 | -------------------------------------------------------------------------------- /website/static/api/activerecord/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | 4 | kales.migrations 5 | -------------------------------------------------------------------------------- /kales-cli/src/main/kotlin/kales/cli/task/KalesTask.kt: -------------------------------------------------------------------------------- 1 | package kales.cli.task 2 | 3 | interface KalesTask { 4 | fun run() 5 | } -------------------------------------------------------------------------------- /website/static/img/favicon/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/website/static/img/favicon/favicon.ico -------------------------------------------------------------------------------- /activerecord/libs/harmonica-core-1.1.18.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/activerecord/libs/harmonica-core-1.1.18.jar -------------------------------------------------------------------------------- /activemodel/src/test/resources/database.yml: -------------------------------------------------------------------------------- 1 | development: 2 | adapter: h2 3 | host: mem 4 | database: test 5 | username: 6 | password: -------------------------------------------------------------------------------- /website/publish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -u 4 | 5 | GIT_USER=felipecsl CURRENT_BRANCH=master USE_SSH=true yarn run publish-gh-pages -------------------------------------------------------------------------------- /kales-cli/src/main/resources/gradle-wrapper.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecsl/kales/HEAD/kales-cli/src/main/resources/gradle-wrapper.bin -------------------------------------------------------------------------------- /kales-cli/src/main/resources/META-INF/services/javax.script.ScriptEngineFactory: -------------------------------------------------------------------------------- 1 | org.jetbrains.kotlin.script.jsr223.KotlinJsr223JvmLocalScriptEngineFactory -------------------------------------------------------------------------------- /gradle/deps.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | kotlinVersion = '1.3.72' 3 | truthVersion = '1.0.1' 4 | ktorVersion = '1.3.2' 5 | jdbiVersion = '3.8.2' 6 | h2DBVersion = '1.4.197' 7 | } 8 | -------------------------------------------------------------------------------- /sampleapp/src/main/resources/database.yml: -------------------------------------------------------------------------------- 1 | development: 2 | adapter: postgresql 3 | host: localhost 4 | database: kales_sampleapp_development 5 | username: felipecsl 6 | password: -------------------------------------------------------------------------------- /harmonica/README.md: -------------------------------------------------------------------------------- 1 | # Harmonica 2 | 3 | This is a fork of [harmonica](https://github.com/KenjiOhtsuka/harmonica). 4 | See https://github.com/KenjiOhtsuka/harmonica/issues/102 for more details -------------------------------------------------------------------------------- /activerecord/src/main/kotlin/kales/migrations/Migration.kt: -------------------------------------------------------------------------------- 1 | package kales.migrations 2 | 3 | import com.improve_future.harmonica.core.AbstractMigration 4 | 5 | abstract class Migration : AbstractMigration() -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:8.11.4 2 | 3 | WORKDIR /app/website 4 | 5 | EXPOSE 3000 35729 6 | COPY ./docs /app/docs 7 | COPY ./website /app/website 8 | RUN yarn install 9 | 10 | CMD ["yarn", "start"] 11 | -------------------------------------------------------------------------------- /kales/src/test/kotlin/kales/test/app/views/test/CreateViewModel.kt: -------------------------------------------------------------------------------- 1 | package kales.test.app.views.test 2 | 3 | import kales.actionpack.ViewModel 4 | 5 | data class CreateViewModel(val message: String) : ViewModel -------------------------------------------------------------------------------- /kales/src/test/kotlin/kales/test/app/views/test/IndexViewModel.kt: -------------------------------------------------------------------------------- 1 | package kales.test.app.views.test 2 | 3 | import kales.actionpack.ViewModel 4 | 5 | data class IndexViewModel(val greeting: String) : ViewModel -------------------------------------------------------------------------------- /scripts/release: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eu 4 | version=$(cat gradle.properties |grep VERSION |cut -c 9-) 5 | ./gradlew kales-cli:distZip 6 | cp kales-cli/build/distributions/kales.zip kales-${version}.zip -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/activemodel/Util.kt: -------------------------------------------------------------------------------- 1 | package kales.activemodel 2 | 3 | import org.jdbi.v3.core.Handle 4 | import org.jdbi.v3.core.Jdbi 5 | 6 | inline fun Jdbi.use(block: (Handle) -> T) = open().use { block(it) } -------------------------------------------------------------------------------- /website/blog/2017-09-26-adding-rss.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Adding RSS Support 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 8 | This is a test post. 9 | 10 | A whole bunch of other information. 11 | -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/app/views/posts/PostViewModel.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.app.views.posts 2 | 3 | import kales.actionpack.ViewModel 4 | import kales.sample.app.models.Post 5 | 6 | data class PostViewModel( 7 | val post: Post? = null 8 | ) : ViewModel -------------------------------------------------------------------------------- /website/blog/2017-10-24-new-version-1.0.0.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: New Version 1.0.0 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 8 | This blog post will test file name parsing issues when periods are present. 9 | -------------------------------------------------------------------------------- /sampleapp/assets/stylesheets/sampleapp.css: -------------------------------------------------------------------------------- 1 | .app-title { 2 | margin: 1em 0 3em 0; 3 | font-size: 1.2em; 4 | } 5 | 6 | .row { 7 | margin-top: 1rem; 8 | } 9 | 10 | .notice { 11 | background-color: #e4dcb6; 12 | padding: 10px 20px; 13 | color: white; 14 | } -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/app/views/posts/IndexViewModel.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.app.views.posts 2 | 3 | import kales.actionpack.ViewModel 4 | import kales.sample.app.models.Post 5 | 6 | data class IndexViewModel( 7 | val name: String, 8 | val posts: List 9 | ) : ViewModel -------------------------------------------------------------------------------- /website/sidebars.json: -------------------------------------------------------------------------------- 1 | { 2 | "docs": { 3 | "Introduction": [ 4 | "foreword", 5 | "installation", 6 | "getting-started", 7 | "hot-reloading", 8 | "migrations", 9 | "active-record", 10 | "controllers-overview" 11 | ] 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activejob/alltypes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - activejob 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionmailer/alltypes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - actionmailer 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activestorage/alltypes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - activestorage 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activesupport/alltypes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - activesupport 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /activejob/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-activejob' 7 | 8 | dependencies { 9 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 10 | testImplementation "com.google.truth:truth:$truthVersion" 11 | } -------------------------------------------------------------------------------- /actionmailer/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-actionmailer' 7 | 8 | dependencies { 9 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 10 | testImplementation "com.google.truth:truth:$truthVersion" 11 | } -------------------------------------------------------------------------------- /activestorage/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-activestorage' 7 | 8 | dependencies { 9 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 10 | testImplementation "com.google.truth:truth:$truthVersion" 11 | } -------------------------------------------------------------------------------- /activesupport/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-activesupport' 7 | 8 | dependencies { 9 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 10 | testImplementation "com.google.truth:truth:$truthVersion" 11 | } -------------------------------------------------------------------------------- /website/static/api/activejob/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | activejob 5 | 6 | 7 | 8 | activejob
9 |
10 |

Index

11 | All Types 12 | 13 | 14 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/internal/StringExtensions.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | fun String.singularize() = 4 | if (endsWith("s")) { 5 | this.substring(0, length - 1) 6 | } else { 7 | this 8 | } 9 | 10 | fun String.pluralize() = 11 | if (!endsWith("s")) { 12 | "${this}s" 13 | } else { 14 | this 15 | } -------------------------------------------------------------------------------- /website/static/api/actionmailer/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | actionmailer 5 | 6 | 7 | 8 | actionmailer
9 |
10 |

Index

11 | All Types 12 | 13 | 14 | -------------------------------------------------------------------------------- /website/static/api/activestorage/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | activestorage 5 | 6 | 7 | 8 | activestorage
9 |
10 |

Index

11 | All Types 12 | 13 | 14 | -------------------------------------------------------------------------------- /website/static/api/activesupport/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | activesupport 5 | 6 | 7 | 8 | activesupport
9 |
10 |

Index

11 | All Types 12 | 13 | 14 | -------------------------------------------------------------------------------- /actionpack/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-actionpack' 7 | 8 | dependencies { 9 | api "io.ktor:ktor-server-core:$ktorVersion" 10 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 11 | testImplementation "com.google.truth:truth:$truthVersion" 12 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Feb 13 09:15:40 PST 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | # Newer versions broke publishing/signing https://github.com/gradle/gradle/issues/8213 7 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip 8 | -------------------------------------------------------------------------------- /website/static/api/actionview/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | $dokka.location:kales.actionview$formFor(kotlinx.html.FlowContent, kales.actionview.formFor.T, kales.actionview.KalesFormMethod, kotlinx.html.FormEncType, kotlin.String, kotlin.Function1((kotlinx.html.FORM, kotlin.Unit)))kales.actionview/kotlinx.html.-flow-content/form-for.html 4 | kales.actionview 5 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Wed Feb 13 18:26:59 PST 2019 8 | ndk.dir=/Users/felipecsl/Library/Android/sdk/ndk-bundle 9 | sdk.dir=/Users/felipecsl/Library/Android/sdk 10 | -------------------------------------------------------------------------------- /website/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "scripts": { 3 | "examples": "docusaurus-examples", 4 | "start": "docusaurus-start", 5 | "build": "docusaurus-build", 6 | "publish-gh-pages": "docusaurus-publish", 7 | "write-translations": "docusaurus-write-translations", 8 | "version": "docusaurus-version", 9 | "rename-version": "docusaurus-rename-version" 10 | }, 11 | "devDependencies": { 12 | "docusaurus": "^1.12.0" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /actionview/src/main/kotlin/kales/actionview/RenderViewResult.kt: -------------------------------------------------------------------------------- 1 | package kales.actionview 2 | 3 | import kales.actionpack.ActionResult 4 | 5 | /** 6 | * Represents the result of executing a `ApplicationController` action when a [ActionView] view 7 | * should be rendered. The name of the action executed is represented by [actionName]. 8 | */ 9 | data class RenderViewResult( 10 | val view: ActionView<*>?, 11 | val actionName: String 12 | ) : ActionResult -------------------------------------------------------------------------------- /actionview/src/main/kotlin/kales/actionview/ApplicationLayout.kt: -------------------------------------------------------------------------------- 1 | package kales.actionview 2 | 3 | import io.ktor.html.Placeholder 4 | import io.ktor.html.Template 5 | import kales.actionpack.KalesApplicationCall 6 | import kotlinx.html.FlowContent 7 | import kotlinx.html.HTML 8 | 9 | abstract class ApplicationLayout( 10 | protected val call: KalesApplicationCall 11 | ) : Template { 12 | val body = Placeholder() 13 | val flash = call.flash 14 | } -------------------------------------------------------------------------------- /website/static/api/kales/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | $dokka.location:kales$callSuspendMethod(kotlin.Any, kotlin.String, kotlin.Array((kotlin.Any)))kales/kotlin.-any/call-suspend-method.html 4 | $dokka.location:kales$kalesApp(io.ktor.application.Application, kotlin.reflect.KClass((kales.kalesApp.T)), kotlin.Function1((kales.KalesApplication((kales.kalesApp.T)), kotlin.Unit)))kales/io.ktor.application.-application/kales-app.html 5 | kales 6 | -------------------------------------------------------------------------------- /activerecord/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-activerecord' 7 | 8 | dependencies { 9 | api project(":harmonica") 10 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 11 | implementation 'org.yaml:snakeyaml:1.23' 12 | testImplementation "com.google.truth:truth:$truthVersion" 13 | testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion" 14 | } -------------------------------------------------------------------------------- /actionpack/src/main/kotlin/kales/actionpack/ActionResult.kt: -------------------------------------------------------------------------------- 1 | package kales.actionpack 2 | 3 | /** Represents the outcome of executing a Kales Controller action */ 4 | interface ActionResult 5 | 6 | /** 7 | * Represents the result of executing a `ApplicationController` action when a redirect to a new 8 | * action was requested. The name of the new action is represented by [newActionName]. 9 | */ 10 | data class RedirectResult( 11 | val newActionName: String 12 | ) : ActionResult -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/db/migrate/M20190224204400_CreatePostsMigration.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.db.migrate 2 | 3 | import kales.migrations.Migration 4 | 5 | class M20190224204400_CreatePostsMigration : Migration() { 6 | override fun up() { 7 | createTable("posts") { 8 | varchar(columnName = "title", nullable = false) 9 | text("content", nullable = true) 10 | } 11 | } 12 | 13 | override fun down() { 14 | dropTable("posts") 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /actionview/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | project.ext.artifact = 'kales-actionview' 7 | 8 | dependencies { 9 | api project(":activemodel") 10 | api project(":actionpack") 11 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 12 | api "io.ktor:ktor-server-core:$ktorVersion" 13 | api "io.ktor:ktor-html-builder:$ktorVersion" 14 | testImplementation "com.google.truth:truth:$truthVersion" 15 | } -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/db/migrate/M20190307090134_CreateComment.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.db.migrate 2 | 3 | import kales.migrations.Migration 4 | 5 | class M20190307090134_CreateComment : Migration() { 6 | override fun up() { 7 | createTable("comments") { 8 | integer(columnName = "post_id", nullable = false) 9 | text(columnName = "comment_text", nullable = false) 10 | } 11 | } 12 | 13 | override fun down() { 14 | dropTable("comments") 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /website/static/api/kales/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | kales 5 | 6 | 7 | 8 | kales
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 |
15 |

kales

16 |
18 |
22 |

Index

23 | All Types 24 | 25 | 26 | -------------------------------------------------------------------------------- /kales/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /website/static/css/custom.css: -------------------------------------------------------------------------------- 1 | /* your custom css */ 2 | 3 | @media only screen and (min-device-width: 360px) and (max-device-width: 736px) { 4 | .try-out-frame { 5 | margin: 0 auto; 6 | } 7 | } 8 | 9 | @media only screen and (min-width: 1024px) { 10 | .try-out-frame { 11 | width: 1024px; 12 | margin: 0 auto; 13 | } 14 | } 15 | 16 | @media only screen and (max-width: 1023px) { 17 | } 18 | 19 | @media only screen and (min-width: 1400px) { 20 | } 21 | 22 | @media only screen and (min-width: 1500px) { 23 | } -------------------------------------------------------------------------------- /website/static/api/activemodel/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | $dokka.location:kales.activemodel$use(org.jdbi.v3.core.Jdbi, kotlin.Function1((org.jdbi.v3.core.Handle, kales.activemodel.use.T)))kales.activemodel/org.jdbi.v3.core.-jdbi/use.html 4 | $dokka.location:kales.internal$pluralize(kotlin.String)kales.internal/kotlin.-string/pluralize.html 5 | $dokka.location:kales.internal$singularize(kotlin.String)kales.internal/kotlin.-string/singularize.html 6 | kales 7 | kales.activemodel 8 | kales.internal 9 | -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/App.kt: -------------------------------------------------------------------------------- 1 | package kales.sample 2 | 3 | import io.ktor.application.Application 4 | import io.ktor.server.engine.embeddedServer 5 | import io.ktor.server.netty.Netty 6 | import kales.kalesApp 7 | import kales.sample.app.views.layouts.AppLayout 8 | 9 | fun Application.module() { 10 | kalesApp(AppLayout::class, routes()) 11 | } 12 | 13 | fun main() { 14 | embeddedServer( 15 | Netty, 8080, 16 | watchPaths = listOf("sampleapp"), 17 | module = Application::module 18 | ).start() 19 | } -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/MaybeRecordIdColumnMapper.kt: -------------------------------------------------------------------------------- 1 | package kales 2 | 3 | import kales.activemodel.MaybeRecordId 4 | import kales.activemodel.RecordId 5 | import org.jdbi.v3.core.mapper.ColumnMapper 6 | import org.jdbi.v3.core.statement.StatementContext 7 | import java.sql.ResultSet 8 | 9 | class MaybeRecordIdColumnMapper : ColumnMapper { 10 | override fun map(resultSet: ResultSet, columnNumber: Int, ctx: StatementContext): MaybeRecordId { 11 | return RecordId(resultSet.getInt(columnNumber)) 12 | } 13 | } -------------------------------------------------------------------------------- /kales/src/test/kotlin/kales/test/app/views/test/CreateView.kt: -------------------------------------------------------------------------------- 1 | package kales.test.app.views.test 2 | 3 | import kales.actionpack.KalesApplicationCall 4 | import kales.actionview.ActionView 5 | import kotlinx.html.FlowContent 6 | import kotlinx.html.h1 7 | 8 | class CreateView( 9 | call: KalesApplicationCall, 10 | bindings: CreateViewModel? = CreateViewModel("") 11 | ) : ActionView(call, bindings) { 12 | override fun FlowContent.render() { 13 | h1 { 14 | +"Posted: ${bindings?.message}" 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /kales/src/test/kotlin/kales/test/app/views/test/IndexView.kt: -------------------------------------------------------------------------------- 1 | package kales.test.app.views.test 2 | 3 | import kales.actionpack.KalesApplicationCall 4 | import kales.actionview.ActionView 5 | import kotlinx.html.FlowContent 6 | import kotlinx.html.h1 7 | 8 | class IndexView( 9 | call: KalesApplicationCall, 10 | bindings: IndexViewModel? = IndexViewModel("Hello") 11 | ) : ActionView(call, bindings) { 12 | override fun FlowContent.render() { 13 | h1 { 14 | +"Hello ${bindings?.greeting}" 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-view-model.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ViewModel - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / ViewModel
9 |
10 |

ViewModel

11 | interface ViewModel 12 | 13 | 14 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-view-model.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ViewModel - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ViewModel
9 |
10 |

ViewModel

11 | interface ViewModel 12 | 13 | 14 | -------------------------------------------------------------------------------- /website/static/api/actionpack/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | actionpack 5 | 6 | 7 | 8 | actionpack
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 |
15 |

kales.actionpack

16 |
18 |
22 |

Index

23 | All Types 24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/actionview/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | actionview 5 | 6 | 7 | 8 | actionview
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 |
15 |

kales.actionview

16 |
18 |
22 |

Index

23 | All Types 24 | 25 | 26 | -------------------------------------------------------------------------------- /website/blog/2017-09-25-testing-rss.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Adding RSS Support - RSS Truncation Test 3 | author: Eric Nakagawa 4 | authorURL: http://twitter.com/ericnakagawa 5 | authorFBID: 661277173 6 | --- 7 | 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 | 9 | This should be truncated. 10 | 11 | This line should never render in XML. 12 | -------------------------------------------------------------------------------- /website/static/api/activerecord/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | activerecord 5 | 6 | 7 | 8 | activerecord
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 |
15 |

kales.migrations

16 |
18 |
22 |

Index

23 | All Types 24 | 25 | 26 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/internal/MutableLazy.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | import kotlin.reflect.KProperty 4 | 5 | fun mutableLazy(initializer: () -> T) = Delegate(lazy(initializer)) 6 | 7 | class Delegate(private val lazy: Lazy) { 8 | private var value: T? = null 9 | 10 | operator fun getValue(thisRef: Any?, property: KProperty<*>): T { 11 | return value ?: lazy.getValue(thisRef, property) 12 | } 13 | 14 | operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T) { 15 | this.value = value 16 | } 17 | } -------------------------------------------------------------------------------- /kales/src/test/kotlin/kales/test/app/TestAppLayout.kt: -------------------------------------------------------------------------------- 1 | package kales.test.app 2 | 3 | import io.ktor.html.insert 4 | import kales.actionpack.KalesApplicationCall 5 | import kales.actionview.ApplicationLayout 6 | import kotlinx.html.HTML 7 | import kotlinx.html.body 8 | import kotlinx.html.head 9 | import kotlinx.html.title 10 | 11 | class TestAppLayout(call: KalesApplicationCall) : ApplicationLayout(call) { 12 | override fun HTML.apply() { 13 | head { 14 | title { +"Sample app" } 15 | } 16 | body { 17 | insert(body) 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /website/static/api/harmonica/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | $dokka.location:com.improve_future.harmonica.core.table.column$toHexString(kotlin.ByteArray)com.improve_future.harmonica.core.table.column/kotlin.-byte-array/to-hex-string.html 4 | com.improve_future.harmonica.config 5 | com.improve_future.harmonica.core 6 | com.improve_future.harmonica.core.config 7 | com.improve_future.harmonica.core.table 8 | com.improve_future.harmonica.core.table.column 9 | com.improve_future.harmonica.service 10 | com.improve_future.harmonica.task 11 | -------------------------------------------------------------------------------- /activemodel/src/test/kotlin/kales/internal/RecordUpdaterTest.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | import kales.ApplicationRecord.Companion.JDBI 4 | import kales.Foo 5 | import kales.TestModel 6 | import kales.activemodel.use 7 | import org.junit.Test 8 | 9 | class RecordUpdaterTest { 10 | @Test(expected = IllegalArgumentException::class) 11 | fun `update record with mismatching klass should throw exception`() { 12 | JDBI.use { 13 | val updater = RecordUpdater(it, KApplicationRecordClass(TestModel::class)) 14 | updater.update(Foo(foo = "")) 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/JdbiFactory.kt: -------------------------------------------------------------------------------- 1 | package kales 2 | 3 | import kales.internal.MaybeRecordIdArgumentFactory 4 | import org.jdbi.v3.core.Jdbi 5 | 6 | object JdbiFactory { 7 | fun fromConnectionString(connString: String): Jdbi { 8 | return Jdbi.create(connString) 9 | .registerColumnMapper(HasManyAssociationColumnMapperFactory()) 10 | .registerColumnMapper(BelongsToAssociationColumnMapperFactory()) 11 | .registerColumnMapper(MaybeRecordIdColumnMapper()) 12 | .registerArgument(MaybeRecordIdArgumentFactory()) 13 | .installPlugins() 14 | } 15 | } -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | docusaurus: 5 | build: . 6 | ports: 7 | - 3000:3000 8 | - 35729:35729 9 | volumes: 10 | - ./docs:/app/docs 11 | - ./website/blog:/app/website/blog 12 | - ./website/core:/app/website/core 13 | - ./website/i18n:/app/website/i18n 14 | - ./website/pages:/app/website/pages 15 | - ./website/static:/app/website/static 16 | - ./website/sidebars.json:/app/website/sidebars.json 17 | - ./website/siteConfig.js:/app/website/siteConfig.js 18 | working_dir: /app/website 19 | -------------------------------------------------------------------------------- /sampleapp/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'application' 3 | id "org.jetbrains.kotlin.jvm" 4 | } 5 | 6 | group = GROUP_ID 7 | version = VERSION 8 | 9 | tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { 10 | kotlinOptions { 11 | jvmTarget = "1.8" 12 | } 13 | } 14 | 15 | mainClassName = 'kales.sample.AppKt' 16 | 17 | dependencies { 18 | implementation project(":kales") 19 | implementation "org.jdbi:jdbi3-postgres:$jdbiVersion" 20 | implementation "org.postgresql:postgresql:42.2.6.jre7" 21 | implementation "io.ktor:ktor-server-netty:$ktorVersion" 22 | } -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-h2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.H2 - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / H2
9 |
10 |

H2

11 | 12 | H2 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-kales-form-method/get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesFormMethod.get - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / KalesFormMethod / get
9 |
10 |

get

11 | 12 | get 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-kales-form-method/put.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesFormMethod.put - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / KalesFormMethod / put
9 |
10 |

put

11 | 12 | put 13 | 14 | 15 | -------------------------------------------------------------------------------- /REALEASING.md: -------------------------------------------------------------------------------- 1 | 1. Bump the version in `gradle.properties`, `scripts/install` and the project Readme 2 | 1. TODO replace this with a `sed` oneliner 3 | 1. If it's a stable release, run `./gradlew assemble signArchives` 4 | 1. Run `./gradlew publish` to push the jars to [Maven Central](https://oss.sonatype.org/) 5 | 1. If it's a stable release, you'll also need to go the dashboard and promote it 6 | 1. Run `scripts/release` 7 | 1. This will create a shadow JAR `kales-x.y.z.zip` on the project root directory 8 | 1. Upload release to GitHub, make sure the version tag matches exactly the vesion in `gradle.properties` 9 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-kales-form-method/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesFormMethod.post - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / KalesFormMethod / post
9 |
10 |

post

11 | 12 | post 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-kales-form-method/patch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesFormMethod.patch - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / KalesFormMethod / patch
9 |
10 |

patch

11 | 12 | patch 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-kales-form-method/delete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesFormMethod.delete - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / KalesFormMethod / delete
9 |
10 |

delete

11 | 12 | delete 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-my-s-q-l.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.MySQL - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / MySQL
9 |
10 |

MySQL

11 | 12 | MySQL 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-cli/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Cli.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / Cli / <init>
9 |
10 |

<init>

11 | 12 | Cli() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-new/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | New.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / New / <init>
9 |
10 |

<init>

11 | 12 | New() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-oracle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.Oracle - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / Oracle
9 |
10 |

Oracle

11 | 12 | Oracle 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-s-q-lite.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.SQLite - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / SQLite
9 |
10 |

SQLite

11 | 12 | SQLite 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-version/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Version.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / Version / <init>
9 |
10 |

<init>

11 | 12 | Version() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | kales-cli 5 | 6 | 7 | 8 | kales-cli
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 | 24 | 26 | 27 | 28 |
15 |

kales.cli

16 |
18 |
22 |

kales.cli.task

23 |
25 |
29 |

Index

30 | All Types 31 | 32 | 33 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-db-create/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbCreate.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / DbCreate / <init>
9 |
10 |

<init>

11 | 12 | DbCreate() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generate.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / Generate / <init>
9 |
10 |

<init>

11 | 12 | Generate() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-s-q-l-server.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.SQLServer - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / SQLServer
9 |
10 |

SQLServer

11 | 12 | SQLServer 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-db-migrate/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbMigrate.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / DbMigrate / <init>
9 |
10 |

<init>

11 | 12 | DbMigrate() 13 | 14 | 15 | -------------------------------------------------------------------------------- /actionview/src/main/kotlin/kales/actionview/ActionPartialView.kt: -------------------------------------------------------------------------------- 1 | package kales.actionview 2 | 3 | import io.ktor.html.Placeholder 4 | import kales.actionpack.ViewModel 5 | import kotlinx.html.FlowContent 6 | 7 | /** 8 | * The base class that's used for rendering sub templates into the DOM. 9 | * The [bindings] object can be used for passing data into the layout rendering step. 10 | * See also: [ActionView] 11 | */ 12 | abstract class ActionPartialView( 13 | val bindings: T? = null 14 | ) : Placeholder() { 15 | abstract fun FlowContent.render() 16 | 17 | init { 18 | invoke { 19 | render() 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-hash.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.Hash - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / Hash
9 |
10 |

Hash

11 | 12 | Hash 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-dbms/-postgre-s-q-l.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dbms.PostgreSQL - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Dbms / PostgreSQL
9 |
10 |

PostgreSQL

11 | 12 | PostgreSQL 13 | 14 | 15 | -------------------------------------------------------------------------------- /kales-cli/src/main/kotlin/kales/cli/task/DbCreateTask.kt: -------------------------------------------------------------------------------- 1 | package kales.cli.task 2 | 3 | import kales.JdbiFactory 4 | import kales.activemodel.use 5 | import java.io.File 6 | 7 | // Creates the database 8 | class DbCreateTask(workingDir: File) : KalesContextualTask(workingDir) { 9 | override fun run() { 10 | val kalesDbConfig = readDatabaseConfig() 11 | val connString = kalesDbConfig.copy(database = "").toConnectionString() 12 | val jdbi = JdbiFactory.fromConnectionString(connString) 13 | jdbi.use { 14 | it.execute("CREATE DATABASE ${kalesDbConfig.database}") 15 | } 16 | println("Database ${kalesDbConfig.database} created.") 17 | } 18 | } -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-b-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.BTree - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / BTree
9 |
10 |

BTree

11 | 12 | BTree 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-view/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateView.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateView / <init>
9 |
10 |

<init>

11 | 12 | GenerateView() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-model/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateModel.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateModel / <init>
9 |
10 |

<init>

11 | 12 | GenerateModel() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.id - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / id
9 |
10 |

id

11 | 12 | val id: MaybeRecordId 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-migration/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Migration.<init> - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / Migration / <init>
9 |
10 |

<init>

11 | 12 | Migration() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-gin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.Gin - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / Gin
9 |
10 |

Gin

11 | 12 | Gin 13 |

Only for PostgreSQL

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-comment/id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Comment.id - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Comment / id
9 |
10 |

id

11 | 12 | val id: MaybeRecordId 13 | 14 | 15 | -------------------------------------------------------------------------------- /kales/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'java-library' 3 | id 'com.github.johnrengelman.shadow' version '5.1.0' 4 | id "org.jetbrains.kotlin.jvm" 5 | } 6 | 7 | project.ext.artifact = 'kales' 8 | 9 | dependencies { 10 | api project(":actionpack") 11 | api project(":actionview") 12 | api project(":activemodel") 13 | api project(":activerecord") 14 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" 15 | implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion" 16 | implementation "ch.qos.logback:logback-classic:1.2.3" 17 | testImplementation "com.google.truth:truth:$truthVersion" 18 | testImplementation "io.ktor:ktor-server-test-host:$ktorVersion" 19 | } -------------------------------------------------------------------------------- /website/static/api/activerecord/alltypes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - activerecord 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 | 14 | 17 | 18 | 19 | 21 | 23 | 24 | 25 |
13 | kales.migrations.KalesDatabaseConfig 15 |

Represents a Kales database config as defined in a database.yml file

16 |
20 | kales.migrations.Migration 22 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-b-rin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.BRin - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / BRin
9 |
10 |

BRin

11 | 12 | BRin 13 |

Only for PostgreSQL

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-gist.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.Gist - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / Gist
9 |
10 |

Gist

11 | 12 | Gist 13 |

Only for PostgreSQL

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-migration/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateMigration.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateMigration / <init>
9 |
10 |

<init>

11 | 12 | GenerateMigration() 13 | 14 | 15 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * This file was generated by the Gradle 'init' task. 3 | * 4 | * The settings file is used to specify which projects to include in your build. 5 | * 6 | * Detailed information about configuring a multi-project build in Gradle can be found 7 | * in the user guide at https://docs.gradle.org/4.10.2/userguide/multi_project_builds.html 8 | */ 9 | 10 | include(":actionmailer") 11 | include(":actionview") 12 | include(":actionpack") 13 | include(":harmonica") 14 | include(":activejob") 15 | include(":activemodel") 16 | include(":activerecord") 17 | include(":activestorage") 18 | include(":activesupport") 19 | include(":kales") 20 | include(":kales-cli") 21 | include(":sampleapp") 22 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-controller/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateController.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateController / <init>
9 |
10 |

<init>

11 | 12 | GenerateController() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales/-application-record/-j-d-b-i.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationRecord.JDBI - activemodel 5 | 6 | 7 | 8 | activemodel / kales / ApplicationRecord / JDBI
9 |
10 |

JDBI

11 | 12 | val JDBI: Jdbi 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-index/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Index.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Index / <init>
9 |
10 |

<init>

11 | 12 | Index() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-version-task/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesVersionTask.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesVersionTask / <init>
9 |
10 |

<init>

11 | 12 | KalesVersionTask() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-index-method/-sp-gist.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexMethod.SpGist - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / IndexMethod / SpGist
9 |
10 |

SpGist

11 | 12 | SpGist 13 |

Only for PostgreSQL

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-database/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Database.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Database / <init>
9 |
10 |

<init>

11 | 12 | Database() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activejob/index-outline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Module Contents 5 | 6 | 7 | 8 | activejob
9 |
    10 | 11 | 12 | 13 | Module Contents 14 | 15 | 16 | 17 | alltypes
    18 | 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /website/static/api/kales/kales/-kales-application/routing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplication.routing - kales 5 | 6 | 7 | 8 | kales / kales / KalesApplication / routing
9 |
10 |

routing

11 | 12 | lateinit var routing: Routing 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample/main.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | main - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample / main
9 |
10 |

main

11 | 12 | fun main(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/routes.kt: -------------------------------------------------------------------------------- 1 | package kales.sample 2 | 3 | import kales.KalesApplication 4 | import kales.actionview.ApplicationLayout 5 | import kales.sample.app.controllers.PostsController 6 | 7 | fun routes(): KalesApplication.() -> Unit = { 8 | // https://guides.rubyonrails.org/routing.html#crud-verbs-and-actions 9 | get("/", "index") 10 | get("/posts/new", "new") 11 | post("/posts", "create") 12 | get("/posts/{id}", "show") 13 | put("/posts/{id}", "update") 14 | delete("/posts/{id}", "destroy") 15 | post("/posts/{id}/comments", "writeComment") 16 | } 17 | -------------------------------------------------------------------------------- /website/static/api/actionmailer/index-outline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Module Contents 5 | 6 | 7 | 8 | actionmailer
9 |
    10 | 11 | 12 | 13 | Module Contents 14 | 15 | 16 | 17 | alltypes
    18 | 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales/-maybe-record-id-column-mapper/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MaybeRecordIdColumnMapper.<init> - activemodel 5 | 6 | 7 | 8 | activemodel / kales / MaybeRecordIdColumnMapper / <init>
9 |
10 |

<init>

11 | 12 | MaybeRecordIdColumnMapper() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activestorage/index-outline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Module Contents 5 | 6 | 7 | 8 | activestorage
9 |
    10 | 11 | 12 | 13 | Module Contents 14 | 15 | 16 | 17 | alltypes
    18 | 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /website/static/api/activesupport/index-outline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Module Contents 5 | 6 | 7 | 8 | activesupport
9 |
    10 | 11 | 12 | 13 | Module Contents 14 | 15 | 16 | 17 | alltypes
    18 | 19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-action-view/call.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ActionView.call - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ActionView / call
9 |
10 |

call

11 | 12 | protected val call: KalesApplicationCall 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/working-dir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | workingDir - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / workingDir
9 |
10 |

workingDir

11 | 12 | fun workingDir(): File 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.improve_future.harmonica.config - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.config
9 |
10 |

Package com.improve_future.harmonica.config

11 |

Types

12 | 13 | 14 | 15 | 18 | 20 | 21 | 22 |
16 |

PluginConfig

17 |
19 | object PluginConfig
23 | 24 | 25 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-my-sql-config/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MySqlConfig.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / MySqlConfig / <init>
9 |
10 |

<init>

11 | 12 | MySqlConfig() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-table-builder/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TableBuilder.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / TableBuilder / <init>
9 |
10 |

<init>

11 | 12 | TableBuilder() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/request.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.request - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / request
9 |
10 |

request

11 | 12 | val request: ApplicationRequest 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-belongs-to-association-impl/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | BelongsToAssociationImpl.<init> - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / BelongsToAssociationImpl / <init>
9 |
10 |

<init>

11 | 12 | BelongsToAssociationImpl() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-oracle-config/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | OracleConfig.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / OracleConfig / <init>
9 |
10 |

<init>

11 | 12 | OracleConfig() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales/alltypes/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | alltypes - kales 5 | 6 | 7 | 8 |

All Types

9 | 10 | 11 | 12 | 14 | 16 | 17 | 18 | 20 | 22 | 23 | 24 | 26 | 28 | 29 | 30 |
13 | kotlin.Any (extensions in package kales) 15 |
19 | io.ktor.application.Application (extensions in package kales) 21 |
25 | kales.KalesApplication 27 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/save.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.save - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / save
9 |
10 |

save

11 | 12 | fun save(): Post 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/package-list: -------------------------------------------------------------------------------- 1 | $dokka.format:html 2 | $dokka.linkExtension:html 3 | $dokka.location:kales.sample$module(io.ktor.application.Application)kales.sample/io.ktor.application.-application/module.html 4 | $dokka.location:kales.sample.app.views.posts$textArea(kotlinx.html.FlowOrInteractiveOrPhrasingContent, kotlin.String, kotlin.String, kotlinx.html.TextAreaWrap, kotlin.String, kotlin.String, kotlin.Function1((kotlinx.html.TEXTAREA, kotlin.Unit)))kales.sample.app.views.posts/kotlinx.html.-flow-or-interactive-or-phrasing-content/text-area.html 5 | kales.sample 6 | kales.sample.app.controllers 7 | kales.sample.app.models 8 | kales.sample.app.views.layouts 9 | kales.sample.app.views.posts 10 | kales.sample.app.views.shared 11 | kales.sample.db.migrate 12 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/internal/LazyBelongsToAssociation.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | import kales.ApplicationRecord 4 | import kales.activemodel.BelongsToAssociationImpl 5 | import kales.activemodel.use 6 | import kotlin.reflect.KClass 7 | 8 | class LazyBelongsToAssociation( 9 | private val toKlass: KClass, 10 | private val toRecordId: Int 11 | ) : BelongsToAssociationImpl() { 12 | override var value: ApplicationRecord? by mutableLazy { 13 | ApplicationRecord.JDBI.use { 14 | val queryBuilder = RecordQueryBuilder(it, KApplicationRecordClass(toKlass)) 15 | queryBuilder.findRecord(toRecordId) 16 | .mapTo(toKlass.java) 17 | .findFirst() 18 | .orElse(null) 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.response - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / response
9 |
10 |

response

11 | 12 | val response: ApplicationResponse 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-application-layout/call.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationLayout.call - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ApplicationLayout / call
9 |
10 |

call

11 | 12 | protected val call: KalesApplicationCall 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-abstract-migration/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractMigration.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / AbstractMigration / <init>
9 |
10 |

<init>

11 | 12 | AbstractMigration() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.service/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.improve_future.harmonica.service - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.service
9 |
10 |

Package com.improve_future.harmonica.service

11 |

Types

12 | 13 | 14 | 15 | 18 | 20 | 21 | 22 |
16 |

VersionService

17 |
19 | class VersionService
23 | 24 | 25 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.task/-jarmonica-task-main/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | JarmonicaTaskMain.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.task / JarmonicaTaskMain / <init>
9 |
10 |

<init>

11 | 12 | JarmonicaTaskMain() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-new/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | New.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / New / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/attributes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.attributes - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / attributes
9 |
10 |

attributes

11 | 12 | val attributes: Attributes 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/parameters.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.parameters - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / parameters
9 |
10 |

parameters

11 | 12 | val parameters: Parameters 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-record-id/value.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RecordId.value - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / RecordId / value
9 |
10 |

value

11 | 12 | val value: Int 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.internal/-maybe-record-id-argument-factory/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MaybeRecordIdArgumentFactory.<init> - activemodel 5 | 6 | 7 | 8 | activemodel / kales.internal / MaybeRecordIdArgumentFactory / <init>
9 |
10 |

<init>

11 | 12 | MaybeRecordIdArgumentFactory() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales/kales/-kales-application/logger.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplication.logger - kales 5 | 6 | 7 | 8 | kales / kales / KalesApplication / logger
9 |
10 |

logger

11 | 12 | val logger: Logger 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/title.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.title - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / title
9 |
10 |

title

11 | 12 | val title: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales/-application-record/id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationRecord.id - activemodel 5 | 6 | 7 | 8 | activemodel / kales / ApplicationRecord / id
9 |
10 |

id

11 | 12 | abstract val id: MaybeRecordId 13 | 14 | 15 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/HasManyAssociationColumnMapperFactory.kt: -------------------------------------------------------------------------------- 1 | package kales 2 | 3 | import kales.activemodel.HasManyAssociation 4 | import org.jdbi.v3.core.config.ConfigRegistry 5 | import org.jdbi.v3.core.generic.GenericTypes 6 | import org.jdbi.v3.core.mapper.ColumnMapper 7 | import org.jdbi.v3.core.mapper.ColumnMapperFactory 8 | import java.lang.reflect.Type 9 | import java.util.* 10 | 11 | internal class HasManyAssociationColumnMapperFactory : ColumnMapperFactory { 12 | override fun build(type: Type, config: ConfigRegistry): Optional> { 13 | return if (GenericTypes.getErasedType(type) == HasManyAssociation::class.java) { 14 | Optional.of(HasManyAssociationColumnMapper(type)) 15 | } else { 16 | Optional.empty() 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/app/views/posts/WriteCommentView.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.app.views.posts 2 | 3 | import kales.actionpack.KalesApplicationCall 4 | import kales.actionview.ActionView 5 | import kales.sample.app.views.shared.PostPartialView 6 | import kotlinx.html.FlowContent 7 | import kotlinx.html.div 8 | import kotlinx.html.h2 9 | 10 | class WriteCommentView( 11 | call: KalesApplicationCall, 12 | bindings: PostViewModel? = PostViewModel() 13 | ) : ActionView(call, bindings) { 14 | override fun FlowContent.render() { 15 | div("container") { 16 | div("row") { 17 | div("col-sm-12") { 18 | h2 { +"Comment added to Post" } 19 | } 20 | } 21 | } 22 | renderPartial(PostPartialView(bindings)) 23 | } 24 | } -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/application.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.application - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / application
9 |
10 |

application

11 | 12 | val application: Application 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | activemodel 5 | 6 | 7 | 8 | activemodel
9 |
10 |

Packages

11 | 12 | 13 | 14 | 17 | 19 | 20 | 21 | 24 | 26 | 27 | 28 | 31 | 33 | 34 | 35 |
15 |

kales

16 |
18 |
22 |

kales.activemodel

23 |
25 |
29 |

kales.internal

30 |
32 |
36 |

Index

37 | All Types 38 | 39 | 40 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-postgre-sql-config/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostgreSqlConfig.<init> - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / PostgreSqlConfig / <init>
9 |
10 |

<init>

11 | 12 | PostgreSqlConfig() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-version/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Version.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / Version / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/destroy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.destroy - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / destroy
9 |
10 |

destroy

11 | 12 | fun destroy(): Post 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-db-create/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbCreate.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / DbCreate / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/content.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.content - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / content
9 |
10 |

content

11 | 12 | val content: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /activemodel/src/test/kotlin/kales/internal/KApplicationRecordClassTest.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | import com.google.common.truth.Truth.assertThat 4 | import kales.Foo 5 | import kales.TestModel 6 | import org.junit.Test 7 | 8 | class KApplicationRecordClassTest { 9 | @Test fun foreignKeyColumnName() { 10 | assertThat(KApplicationRecordClass(TestModel::class).foreignKeyColumnName) 11 | .isEqualTo("testmodel_id") 12 | assertThat(KApplicationRecordClass(Foo::class).foreignKeyColumnName) 13 | .isEqualTo("foo_id") 14 | } 15 | 16 | @Test fun tableName() { 17 | assertThat(KApplicationRecordClass(TestModel::class).tableName) 18 | .isEqualTo("testmodels") 19 | assertThat(KApplicationRecordClass(Foo::class).tableName) 20 | .isEqualTo("foos") 21 | } 22 | } -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-db-migrate/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbMigrate.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / DbMigrate / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/BelongsToAssociationColumnMapperFactory.kt: -------------------------------------------------------------------------------- 1 | package kales 2 | 3 | import kales.activemodel.BelongsToAssociation 4 | import org.jdbi.v3.core.config.ConfigRegistry 5 | import org.jdbi.v3.core.generic.GenericTypes 6 | import org.jdbi.v3.core.mapper.ColumnMapper 7 | import org.jdbi.v3.core.mapper.ColumnMapperFactory 8 | import java.lang.reflect.Type 9 | import java.util.* 10 | 11 | internal class BelongsToAssociationColumnMapperFactory : ColumnMapperFactory { 12 | override fun build(type: Type, config: ConfigRegistry): Optional> { 13 | return if (GenericTypes.getErasedType(type) == BelongsToAssociation::class.java) { 14 | Optional.of(BelongsToAssociationColumnMapper(type)) 15 | } else { 16 | Optional.empty() 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/app/views/posts/CreateView.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.app.views.posts 2 | 3 | import kales.actionpack.KalesApplicationCall 4 | import kales.actionview.ActionView 5 | import kales.sample.app.views.shared.PostPartialView 6 | import kotlinx.html.FlowContent 7 | import kotlinx.html.div 8 | import kotlinx.html.h2 9 | 10 | class CreateView( 11 | call: KalesApplicationCall, 12 | bindings: PostViewModel? = PostViewModel() 13 | ) : ActionView(call, bindings) { 14 | override fun FlowContent.render() { 15 | div("container") { 16 | div("row") { 17 | div("col-sm-12") { 18 | h2 { 19 | +"New Post created" 20 | } 21 | } 22 | } 23 | } 24 | renderPartial(PostPartialView(bindings)) 25 | } 26 | } -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-application-controller/call.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationController.call - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / ApplicationController / call
9 |
10 |

call

11 | 12 | val call: KalesApplicationCall 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-action-partial-view/bindings.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ActionPartialView.bindings - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ActionPartialView / bindings
9 |
10 |

bindings

11 | 12 | val bindings: T? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/dbms.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.dbms - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / dbms
9 |
10 |

dbms

11 | 12 | lateinit var dbms: Dbms 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-raw-sql/sql.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RawSql.sql - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / RawSql / sql
9 |
10 |

sql

11 | 12 | var sql: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190307090134_-create-comment/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190307090134_CreateComment.<init> - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190307090134_CreateComment / <init>
9 |
10 |

<init>

11 | 12 | M20190307090134_CreateComment() 13 | 14 | 15 | -------------------------------------------------------------------------------- /activemodel/src/main/kotlin/kales/internal/MaybeRecordIdArgumentFactory.kt: -------------------------------------------------------------------------------- 1 | package kales.internal 2 | 3 | import kales.activemodel.MaybeRecordId 4 | import kales.activemodel.RecordId 5 | import org.jdbi.v3.core.argument.AbstractArgumentFactory 6 | import org.jdbi.v3.core.argument.Argument 7 | import org.jdbi.v3.core.config.ConfigRegistry 8 | import java.sql.Types 9 | 10 | class MaybeRecordIdArgumentFactory : AbstractArgumentFactory(Types.INTEGER) { 11 | override fun build(maybeRecordId: MaybeRecordId, config: ConfigRegistry): Argument { 12 | return Argument { position, statement, _ -> 13 | val value = when (maybeRecordId) { 14 | is RecordId -> maybeRecordId.value 15 | else -> -1 16 | } 17 | statement.setInt(position, value) 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.task/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | com.improve_future.harmonica.task - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.task
9 |
10 |

Package com.improve_future.harmonica.task

11 |

Types

12 | 13 | 14 | 15 | 18 | 20 | 21 | 22 |
16 |

JarmonicaTaskMain

17 |
19 | abstract class JarmonicaTaskMain
23 | 24 | 25 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-action-view/bindings.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ActionView.bindings - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ActionView / bindings
9 |
10 |

bindings

11 | 12 | protected val bindings: T? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/port.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.port - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / port
9 |
10 |

port

11 | 12 | var port: Int 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-model/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateModel.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateModel / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-view/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateView.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateView / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/host.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.host - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / host
9 |
10 |

host

11 | 12 | val host: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-abstract-migration/config.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractMigration.config - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / AbstractMigration / config
9 |
10 |

config

11 | 12 | val config: DbConfig 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.views.layouts/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | kales.sample.app.views.layouts - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.views.layouts
9 |
10 |

Package kales.sample.app.views.layouts

11 |

Types

12 | 13 | 14 | 15 | 18 | 20 | 21 | 22 |
16 |

AppLayout

17 |
19 | class AppLayout : ApplicationLayout
23 | 24 | 25 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.internal/-record-query-builder/all-records.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RecordQueryBuilder.allRecords - activemodel 5 | 6 | 7 | 8 | activemodel / kales.internal / RecordQueryBuilder / allRecords
9 |
10 |

allRecords

11 | 12 | fun allRecords(): Query 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.views.posts/-index-view-model/name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | IndexViewModel.name - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.views.posts / IndexViewModel / name
9 |
10 |

name

11 | 12 | val name: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.views.posts/-post-view-model/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostViewModel.post - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.views.posts / PostViewModel / post
9 |
10 |

post

11 | 12 | val post: Post? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-application-controller/bindings.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationController.bindings - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / ApplicationController / bindings
9 |
10 |

bindings

11 | 12 | var bindings: ViewModel? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-application-layout/body.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationLayout.body - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / ApplicationLayout / body
9 |
10 |

body

11 | 12 | val body: Placeholder<FlowContent> 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-controller/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateController.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateController / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate-migration/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateMigration.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / GenerateMigration / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /sampleapp/src/main/kotlin/kales/sample/app/views/posts/ShowView.kt: -------------------------------------------------------------------------------- 1 | package kales.sample.app.views.posts 2 | 3 | import kales.actionpack.KalesApplicationCall 4 | import kales.actionview.ActionView 5 | import kales.actionview.KalesFormMethod 6 | import kales.sample.app.views.shared.PostPartialView 7 | import kotlinx.html.FlowContent 8 | import kotlinx.html.div 9 | import kotlinx.html.h2 10 | 11 | class ShowView( 12 | call: KalesApplicationCall, 13 | bindings: PostViewModel? = PostViewModel() 14 | ) : ActionView(call, bindings) { 15 | override fun FlowContent.render() { 16 | div("container") { 17 | div("row") { 18 | div("col-sm-8 offset-sm-2") { 19 | h2 { +"Post Details" } 20 | } 21 | } 22 | } 23 | renderPartial(PostPartialView(bindings, KalesFormMethod.put)) 24 | } 25 | } -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-belongs-to-association/value.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | BelongsToAssociation.value - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / BelongsToAssociation / value
9 |
10 |

value

11 | 12 | abstract var value: T? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | kales.sample.app.controllers - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers
9 |
10 |

Package kales.sample.app.controllers

11 |

Types

12 | 13 | 14 | 15 | 18 | 20 | 21 | 22 |
16 |

PostsController

17 |
19 | class PostsController : ApplicationController
23 | 24 | 25 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-comment/comment_text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Comment.comment_text - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Comment / comment_text
9 |
10 |

comment_text

11 | 12 | val comment_text: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190224204400_-create-posts-migration/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190224204400_CreatePostsMigration.<init> - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190224204400_CreatePostsMigration / <init>
9 |
10 |

<init>

11 | 12 | M20190224204400_CreatePostsMigration() 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/adapter.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.adapter - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / adapter
9 |
10 |

adapter

11 | 12 | val adapter: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/sslmode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.sslmode - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / sslmode
9 |
10 |

sslmode

11 | 12 | var sslmode: Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-render-view-result/action-name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RenderViewResult.actionName - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / RenderViewResult / actionName
9 |
10 |

actionName

11 | 12 | val actionName: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/database.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.database - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / database
9 |
10 |

database

11 | 12 | val database: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/password.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.password - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / password
9 |
10 |

password

11 | 12 | val password: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/username.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.username - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / username
9 |
10 |

username

11 | 12 | val username: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-index/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Index - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Index
9 |
10 |

Index

11 | class Index 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | Index()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesTask / run
9 |
10 |

run

11 | 12 | abstract fun run(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-dynamic-parameter-route-selector/name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DynamicParameterRouteSelector.name - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / DynamicParameterRouteSelector / name
9 |
10 |

name

11 | 12 | val name: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.internal/-k-application-record-class/as-symbol.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KApplicationRecordClass.asSymbol - activemodel 5 | 6 | 7 | 8 | activemodel / kales.internal / KApplicationRecordClass / asSymbol
9 |
10 |

asSymbol

11 | 12 | val asSymbol: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/user.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.user - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / user
9 |
10 |

user

11 | 12 | lateinit var user: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /kales/src/main/kotlin/kales/KalesPipelineContext.kt: -------------------------------------------------------------------------------- 1 | package kales 2 | 3 | import io.ktor.application.ApplicationCall 4 | import io.ktor.application.call 5 | import io.ktor.routing.Routing 6 | import io.ktor.util.pipeline.PipelineContext 7 | import kales.actionpack.KalesApplicationCall 8 | 9 | /** 10 | * This custom [PipelineContext] allows us to sneak our [KalesApplicationCall] implementation into 11 | * [Routing], since whenever it calls `context.call` it ends up ultimately calling the [context] 12 | * property in this class, which has our memoizable `receiveParamters` implementation. 13 | */ 14 | internal class KalesPipelineContext( 15 | private val delegate: PipelineContext 16 | ) : PipelineContext by delegate { 17 | override val context: ApplicationCall by lazy { KalesApplicationCall(delegate.call) } 18 | } -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-dynamic-parameter-route-selector/value.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DynamicParameterRouteSelector.value - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / DynamicParameterRouteSelector / value
9 |
10 |

value

11 | 12 | val value: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-redirect-result/new-action-name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RedirectResult.newActionName - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / RedirectResult / newActionName
9 |
10 |

newActionName

11 | 12 | val newActionName: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-redirect-result/new-action-name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RedirectResult.newActionName - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / RedirectResult / newActionName
9 |
10 |

newActionName

11 | 12 | val newActionName: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-has-many-association-impl/size.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HasManyAssociationImpl.size - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / HasManyAssociationImpl / size
9 |
10 |

size

11 | 12 | open val size: Int 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/host.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.host - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / host
9 |
10 |

host

11 | 12 | var host: String 13 |

The default value is 127.0.0.1

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/update.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.update - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / update
9 |
10 |

update

11 | 12 | suspend fun update(): RedirectResult 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-record-id/to-string.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RecordId.toString - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / RecordId / toString
9 |
10 |

toString

11 | 12 | fun toString(): String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/environment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.environment - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / environment
9 |
10 |

environment

11 | 12 | val environment: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-connection-interface/config.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ConnectionInterface.config - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / ConnectionInterface / config
9 |
10 |

config

11 | 12 | abstract val config: DbConfig 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-database/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Database - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Database
9 |
10 |

Database

11 | class Database 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | Database()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/destroy.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.destroy - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / destroy
9 |
10 |

destroy

11 | 12 | suspend fun destroy(): RedirectResult 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-comment/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Comment.post - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Comment / post
9 |
10 |

post

11 | 12 | val post: BelongsToAssociation<Post>? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/new.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.new - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / new
9 |
10 |

new

11 | 12 | fun new(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.name - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / name
9 |
10 |

name

11 | 12 | val name: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-db-config/password.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbConfig.password - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / DbConfig / password
9 |
10 |

password

11 | 12 | lateinit var password: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/-render-view-result/view.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | RenderViewResult.view - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / RenderViewResult / view
9 |
10 |

view

11 | 12 | val view: ActionView<*>? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-contextual-task/resources-dir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesContextualTask.resourcesDir - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesContextualTask / resourcesDir
9 |
10 |

resourcesDir

11 | 12 | protected val resourcesDir: File 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/show.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.show - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / show
9 |
10 |

show

11 | 12 | fun show(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-table-builder/id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TableBuilder.id - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / TableBuilder / id
9 |
10 |

id

11 | 12 | var id: Boolean 13 |

Specify add auto incremental id column or not

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-my-sql-config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | MySqlConfig - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / MySqlConfig
9 |
10 |

MySqlConfig

11 | class MySqlConfig 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | MySqlConfig()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-db-create-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbCreateTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / DbCreateTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-db-migrate-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbMigrateTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / DbMigrateTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales/kales/-kales-application/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplication.layout - kales 5 | 6 | 7 | 8 | kales / kales / KalesApplication / layout
9 |
10 |

layout

11 | 12 | val layout: KClass<T> 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/--index--.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.index - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / index
9 |
10 |

index

11 | 12 | fun index(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-oracle-config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | OracleConfig - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / OracleConfig
9 |
10 |

OracleConfig

11 | class OracleConfig 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | OracleConfig()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli/-generate/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generate - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli / Generate
9 |
10 |

Generate

11 | class Generate : NoRunCliktCommand 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | Generate()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/activerecord/kales.migrations/-kales-database-config/to-string.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesDatabaseConfig.toString - activerecord 5 | 6 | 7 | 8 | activerecord / kales.migrations / KalesDatabaseConfig / toString
9 |
10 |

toString

11 | 12 | fun toString(): String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.config/-plugin-config/group-name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PluginConfig.groupName - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.config / PluginConfig / groupName
9 |
10 |

groupName

11 | 12 | const val groupName: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/nullable.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.nullable - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / nullable
9 |
10 |

nullable

11 | 12 | var nullable: Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-text-column/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TextColumn.default - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / TextColumn / default
9 |
10 |

default

11 | 12 | var default: String? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-abstract-migration/connection.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractMigration.connection - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / AbstractMigration / connection
9 |
10 |

connection

11 | 12 | lateinit var connection: ConnectionInterface 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190307090134_-create-comment/up.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190307090134_CreateComment.up - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190307090134_CreateComment / up
9 |
10 |

up

11 | 12 | fun up(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-generate-view-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateViewTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / GenerateViewTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-version-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesVersionTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesVersionTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-connection/close.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Connection.close - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Connection / close
9 |
10 |

close

11 | 12 | open fun close(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-generate-model-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateModelTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / GenerateModelTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-version-task/kales-version.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesVersionTask.kalesVersion - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesVersionTask / kalesVersion
9 |
10 |

kalesVersion

11 | 12 | fun kalesVersion(): String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-new-application-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NewApplicationTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / NewApplicationTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/has-comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.hasComment - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / hasComment
9 |
10 |

hasComment

11 | 12 | val hasComment: Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/has-default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.hasDefault - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / hasDefault
9 |
10 |

hasDefault

11 | 12 | val hasDefault: Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table/-table-builder/table-name.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | TableBuilder.tableName - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table / TableBuilder / tableName
9 |
10 |

tableName

11 | 12 | lateinit var tableName: String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-connection/config.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Connection.config - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / Connection / config
9 |
10 |

config

11 | 12 | open val config: DbConfig 13 |

Overrides ConnectionInterface.config

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190307090134_-create-comment/down.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190307090134_CreateComment.down - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190307090134_CreateComment / down
9 |
10 |

down

11 | 12 | fun down(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-application-controller/receive-parameters.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ApplicationController.receiveParameters - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / ApplicationController / receiveParameters
9 |
10 |

receiveParameters

11 | 12 | suspend fun receiveParameters(): Parameters 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-has-many-association-impl/clear.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HasManyAssociationImpl.clear - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / HasManyAssociationImpl / clear
9 |
10 |

clear

11 | 12 | open fun clear(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-none-id.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NoneId - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / NoneId
9 |
10 |

NoneId

11 | object NoneId : MaybeRecordId 12 |

ID for records that are only in-memory and not persisted in the database yet (or at all) 13 | Since ApplicationRecord IDs are generated (auto-increment), they should not be set when 14 | instantiating an object and instead auto assigned when persisting it to the database.

15 | 16 | 17 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.config/-postgre-sql-config/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostgreSqlConfig - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.config / PostgreSqlConfig
9 |
10 |

PostgreSqlConfig

11 | class PostgreSqlConfig 12 |

Constructors

13 | 14 | 15 | 16 | 19 | 21 | 22 | 23 |
17 |

<init>

18 |
20 | PostgreSqlConfig()
24 | 25 | 26 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.comment - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / comment
9 |
10 |

comment

11 | 12 | var comment: String? 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-contextual-task/application-root-dir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesContextualTask.applicationRootDir - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesContextualTask / applicationRootDir
9 |
10 |

applicationRootDir

11 | 12 | protected val applicationRootDir: File 13 | 14 | 15 | -------------------------------------------------------------------------------- /harmonica/src/main/kotlin/com/improve_future/harmonica/core/Index.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core 20 | 21 | class Index -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-generate-migration-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateMigrationTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / GenerateMigrationTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.controllers/-posts-controller/create.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PostsController.create - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.controllers / PostsController / create
9 |
10 |

create

11 | 12 | suspend fun create(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /harmonica/src/main/kotlin/com/improve_future/harmonica/core/Database.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core 20 | 21 | class Database -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/has-reference.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.hasReference - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / hasReference
9 |
10 |

hasReference

11 | 12 | val hasReference: Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-generate-controller-task/run.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | GenerateControllerTask.run - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / GenerateControllerTask / run
9 |
10 |

run

11 | 12 | fun run(): Unit 13 |

Overrides KalesTask.run

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190224204400_-create-posts-migration/up.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190224204400_CreatePostsMigration.up - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190224204400_CreatePostsMigration / up
9 |
10 |

up

11 | 12 | fun up(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-dynamic-parameter-route-selector/to-string.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DynamicParameterRouteSelector.toString - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / DynamicParameterRouteSelector / toString
9 |
10 |

toString

11 | 12 | fun toString(): String 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/actionview/kales.actionview/proxied-form-methods.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | proxiedFormMethods - actionview 5 | 6 | 7 | 8 | actionview / kales.actionview / proxiedFormMethods
9 |
10 |

proxiedFormMethods

11 | 12 | val proxiedFormMethods: Set<KalesFormMethod> 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.config/-plugin-config/has-exposed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | PluginConfig.hasExposed - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.config / PluginConfig / hasExposed
9 |
10 |

hasExposed

11 | 12 | fun hasExposed(): Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-kales-contextual-task/db-migrate-dir.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesContextualTask.dbMigrateDir - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / KalesContextualTask / dbMigrateDir
9 |
10 |

dbMigrateDir

11 | 12 | protected val dbMigrateDir: File 13 |

Returns the path to the migrations directory

14 | 15 | 16 | -------------------------------------------------------------------------------- /harmonica/src/test/kotlin/com/improve_future/harmonica/core/DbConfigTest.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core 20 | 21 | class DbConfigTest -------------------------------------------------------------------------------- /kales-cli/src/test/kotlin/kales/cli/task/PackageNameTest.kt: -------------------------------------------------------------------------------- 1 | package kales.cli.task 2 | 3 | import com.google.common.truth.Truth.assertThat 4 | import kales.cli.PackageName 5 | import org.junit.Test 6 | import java.lang.IllegalArgumentException 7 | import java.lang.IllegalStateException 8 | 9 | class PackageNameTest { 10 | @Test fun `test parent package`() { 11 | assertThat(PackageName.parse("com.example").parentPackage).isEqualTo(PackageName.parse("com")) 12 | } 13 | 14 | @Test(expected = IllegalStateException::class) fun `no parent package`() { 15 | PackageName.parse("foo").parentPackage 16 | } 17 | 18 | @Test fun childPackage() { 19 | assertThat(PackageName.parse("com.example").childPackage("foo", "bar")) 20 | .isEqualTo(PackageName.parse("com.example.foo.bar")) 21 | } 22 | 23 | @Test(expected = IllegalArgumentException::class) fun `invalid input`() { 24 | PackageName.parse("hello w0rld$ :)") 25 | } 26 | } -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-has-many-association-impl/hash-code.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HasManyAssociationImpl.hashCode - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / HasManyAssociationImpl / hashCode
9 |
10 |

hashCode

11 | 12 | open fun hashCode(): Int 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-has-many-association-impl/is-empty.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HasManyAssociationImpl.isEmpty - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / HasManyAssociationImpl / isEmpty
9 |
10 |

isEmpty

11 | 12 | open fun isEmpty(): Boolean 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core.table.column/-abstract-column/--index--.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractColumn.index - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core.table.column / AbstractColumn / index
9 |
10 |

index

11 | 12 | fun index(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/harmonica/com.improve_future.harmonica.core/-abstract-migration/up.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AbstractMigration.up - harmonica 5 | 6 | 7 | 8 | harmonica / com.improve_future.harmonica.core / AbstractMigration / up
9 |
10 |

up

11 | 12 | open fun up(): Unit 13 |

Migrate up

14 | 15 | 16 | -------------------------------------------------------------------------------- /website/static/api/kales-cli/kales.cli.task/-db-create-task/-init-.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | DbCreateTask.<init> - kales-cli 5 | 6 | 7 | 8 | kales-cli / kales.cli.task / DbCreateTask / <init>
9 |
10 |

<init>

11 | 12 | DbCreateTask(workingDir: File) 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample/io.ktor.application.-application/module.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | module - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample / io.ktor.application.Application / module
9 |
10 |

module

11 | 12 | fun Application.module(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/activemodel/kales.activemodel/-belongs-to-association-impl/hash-code.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | BelongsToAssociationImpl.hashCode - activemodel 5 | 6 | 7 | 8 | activemodel / kales.activemodel / BelongsToAssociationImpl / hashCode
9 |
10 |

hashCode

11 | 12 | open fun hashCode(): Int 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.views.layouts/-app-layout/apply.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | AppLayout.apply - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.views.layouts / AppLayout / apply
9 |
10 |

apply

11 | 12 | fun HTML.apply(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.db.migrate/-m20190224204400_-create-posts-migration/down.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | M20190224204400_CreatePostsMigration.down - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.db.migrate / M20190224204400_CreatePostsMigration / down
9 |
10 |

down

11 | 12 | fun down(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /harmonica/src/main/kotlin/com/improve_future/harmonica/core/RawSql.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core 20 | 21 | data class RawSql(var sql: String) -------------------------------------------------------------------------------- /harmonica/src/main/kotlin/com/improve_future/harmonica/core/config/MySqlConfig.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core.config 20 | 21 | class MySqlConfig -------------------------------------------------------------------------------- /website/static/api/actionpack/kales.actionpack/-kales-application-call/receive-parameters.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | KalesApplicationCall.receiveParameters - actionpack 5 | 6 | 7 | 8 | actionpack / kales.actionpack / KalesApplicationCall / receiveParameters
9 |
10 |

receiveParameters

11 | 12 | suspend inline fun receiveParameters(): Parameters 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.models/-post/comments.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Post.comments - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.models / Post / comments
9 |
10 |

comments

11 | 12 | val comments: HasManyAssociation<Post, Comment> 13 | 14 | 15 | -------------------------------------------------------------------------------- /website/static/api/sampleapp/kales.sample.app.views.posts/-new-view/render.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | NewView.render - sampleapp 5 | 6 | 7 | 8 | sampleapp / kales.sample.app.views.posts / NewView / render
9 |
10 |

render

11 | 12 | fun FlowContent.render(): Unit 13 | 14 | 15 | -------------------------------------------------------------------------------- /harmonica/src/main/kotlin/com/improve_future/harmonica/core/config/OracleConfig.kt: -------------------------------------------------------------------------------- 1 | /* 2 | * Harmonica: Kotlin Database Migration Tool 3 | * Copyright (C) 2019 Kenji Otsuka 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package com.improve_future.harmonica.core.config 20 | 21 | class OracleConfig --------------------------------------------------------------------------------