Skip to content

Commit

Permalink
Merge pull request #20 from Enaium-Fork/main
Browse files Browse the repository at this point in the history
deploy action
  • Loading branch information
babyfish-ct authored Apr 10, 2024
2 parents afb2bd7 + 85eb6bc commit 14908b1
Show file tree
Hide file tree
Showing 9 changed files with 5,259 additions and 4,349 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy
on:
workflow_dispatch: {}
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
2 changes: 2 additions & 0 deletions docs/quick-view/fetch/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sidebar_position: 2
title: 1. Query Arbitrary Shape
---

import { ObjectFetcherPanel } from '@site/src/components/HomepageFeatures/ObjectFetcher';

## Basic Concepts

Although Jimmer entities are strongly typed, they are also dynamic and can express the ever-changing shape of data structures.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ val sqlClient = newKSqlClient {
`RedisHashBinder`[多视角缓存](./multiview-cache)相关,本文不讨论。
:::

要构建`RedisValueBinder`,需要一个[RedisOptions<String, byte[]>](https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/RedisOperations.html)。
要构建`RedisValueBinder`,需要一个[RedisOptions\<String, byte[]>](https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/RedisOperations.html)

Jimmer的SpringBoot Stater提供`org.babyfish.jimmer.spring.cache.RedisCaches`类,其静态方法`RedisCaches.cacheRedisTemplate`可快速构建这个[RedisOptions<String, byte[]>](https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/RedisOperations.html)对象。
Jimmer的SpringBoot Stater提供`org.babyfish.jimmer.spring.cache.RedisCaches`类,其静态方法`RedisCaches.cacheRedisTemplate`可快速构建这个[RedisOptions\<String, byte[]>](https://docs.spring.io/spring-data/redis/docs/current/api/org/springframework/data/redis/core/RedisOperations.html)对象。

辅助方法`RedisCaches.cacheRedisTemplate`的例子如下:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import {MultiViewCache} from '@site/src/components/Image';

|Key|Value|
|---|-----|
|Book-10|{"id":10,"name":"GraphQL in Action",...}|
|Book-10|`{"id":10,"name":"GraphQL in Action",...}`|
|Book.authors-1|[1,2]|
|BookStore.avgPrice-2|80.333333|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 10
title: Key
---

import Key from "../../_shared/Key.mdx";
import Key from "../../_shared/key.mdx";

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import SaveCommandAbuse from '../../_shared/save-command-abuse.md';
一句话保存任意复杂的数据结构,自动找出DIFF并修改数据库,类似于React/Vue
:::

<SaveCommand/>
<SaveCommandPanel/>

## 基本概念

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,12 @@ specification BookSpecification {
|notLike|String|String|模糊不匹配|
|null|任何属性|boolean|如果DTO属性为true,is null判断|
|notNull|任何属性|boolean|如果DTO属性为true,is not null判断|
|valueIn|任何非关联属性|List<原类型>|in(...)|
|valueNotIn|任何非关联属性|List<原类型>|not in(...)|
|valueIn|任何非关联属性|List\<原类型>|in(...)|
|valueNotIn|任何非关联属性|List\<原类型>|not in(...)|
|associatedIdEq|任何关联属性|关联实体的id属性的类型|关联id = ?。注意,和`id`*(DTO语言固有函数)* 等价|
|associatedIdNe|任何关联属性|关联实体的id属性的类型|关联id &lt;&gt; ?|
|associatedIdIn|任何关联属性|List<关联实体的id属性的类型>|关联id in(...)|
|associatedIdNotIn|任何关联属性|List<关联实体的id属性的类型>|关联id not in(...)|
|associatedIdIn|任何关联属性|List\<关联实体的id属性的类型>|关联id in(...)|
|associatedIdNotIn|任何关联属性|List\<关联实体的id属性的类型>|关联id not in(...)|

### 综合示范

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@easyops-cn/docusaurus-search-local": "^0.33.6",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@mdx-js/react": "^1.6.22",
"@mdx-js/react": "^3.0.1",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.9.1",
"bizcharts": "^4.1.19",
Expand Down
9,556 changes: 5,217 additions & 4,339 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 14908b1

Please sign in to comment.