{"id":18398136,"url":"https://github.com/ousc/kotoframework-v2","last_synced_at":"2026-03-19T04:10:57.065Z","repository":{"id":228197208,"uuid":"773274114","full_name":"ousc/kotoframework-v2","owner":"ousc","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-31T08:43:10.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T02:41:52.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ousc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-17T08:03:37.000Z","updated_at":"2024-03-17T14:05:44.000Z","dependencies_parsed_at":"2024-03-17T15:32:48.419Z","dependency_job_id":"8fd0c78a-e8d5-48fe-b19e-8aad6245422c","html_url":"https://github.com/ousc/kotoframework-v2","commit_stats":null,"previous_names":["ousc/kotoframework-v2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousc%2Fkotoframework-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousc%2Fkotoframework-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousc%2Fkotoframework-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousc%2Fkotoframework-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ousc","download_url":"https://codeload.github.com/ousc/kotoframework-v2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248587451,"owners_count":21129235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:19:56.795Z","updated_at":"2026-02-09T11:31:26.285Z","avatar_url":"https://github.com/ousc.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"---\naliases:\n  - README\n---\n### Koto 是一个数据持久层框架，设计用于 Kotlin，轻量级，现代化。\n\nKoto 2.0旨在通过编写kotlin k2编译器插件，实现更加强大且语义化的orm功能。\n\n\u003e示例：\n```kotlin\n//查询示例\n// 1. 条件查询 / 查询单个字段 / 使用query()查询List\u003cMap\u003e结果\nval users: List\u003cMap\u003cString, Any\u003e\u003e = from\u003cUser\u003e()\n\t\t\t\t.select { it.userName }.where { it.id == 1 }.query()\n\n// 1.多条件查询 / 查询多个字段 / 带分页 / 带去重 / 带排序\nval (users, total): List\u003cUser\u003e = from\u003cUser\u003e()\n                .select { it.userName + it.authCode + it.id }\n                .where { it.id == 1 \u0026\u0026  }\n                .page(1, 10)\n                .orderBy { it.updateTime.desc() }\n                .distinct()\n                .withTotal {\n\t                queryForList()\n                }\n\n\n//连表查询\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousc%2Fkotoframework-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fousc%2Fkotoframework-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousc%2Fkotoframework-v2/lists"}