Giter VIP home page Giter VIP logo

Comments (5)

RedCrazyGhost avatar RedCrazyGhost commented on May 30, 2024 2

DatasheetRecordVo.java The data type is JSONObject, and the underlying implementation is Map<String,Object>

@Schema(description = "Data recorded in one row (corresponding to each field)")
private JSONObject data;

JsonHandler.java Write about the mapping processing of JSONObject

@MappedTypes(JSONObject.class)
@MappedJdbcTypes(JdbcType.VARCHAR)
public class JsonHandler extends BaseTypeHandler<JSONObject> 

DatasheetRecordMapper.xml There was a mention of data

<sql id="RecordVo_Column_List">
        record_id, `data` as data, revision_history, revision, field_updated_info as recordMeta
    </sql>

<select id="selectListByDstId" resultMap="datasheetRecordVo">
    select  <include refid="RecordVo_Column_List"/> from ${tablePrefix}datasheet_record
    where dst_id = #{dstId} and is_deleted = 0
</select>

datasheet-record-data.sql json is embodied in sql statements

INSERT INTO `datasheet_record` 
(`id`, `record_id`, `dst_id`, `data`,
`revision_history`, `revision`,
`field_updated_info`, `is_deleted`)
VALUES 
(0, 'rec5TDJ5dfewH', 'dst0ZDEBxQPJxoaQ1h', '{}', 
'13', 13,
'{\"createdAt\": 1595922741000}', 0);

from apitable.

ChambersChan avatar ChambersChan commented on May 30, 2024 1

Record data is stored in the database apitable_datasheet_record, and the data format is json.

from apitable.

shawndenggh avatar shawndenggh commented on May 30, 2024

what is recode? @Nonomi514

from apitable.

Nonomi514 avatar Nonomi514 commented on May 30, 2024

what is recode? @Nonomi514

Sorry,it should is record

from apitable.

Nonomi514 avatar Nonomi514 commented on May 30, 2024

Thanks to both of you, I know the answer to this question

from apitable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.