Giter VIP home page Giter VIP logo

Comments (4)

Issues-translate-bot avatar Issues-translate-bot commented on June 12, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Take the following code as an example:
`
struct TestData{
pub cmd_type: u16
}

`
It turns out that the database has already named this field type. If the field name is changed to type, it will conflict with the keyword. I want to map cmd_type to the type field. Is there a corresponding macro definition?
Is there any definition to declare the field as an auto-increasing primary key?

from rbatis.

zhuxiujia avatar zhuxiujia commented on June 12, 2024

以下面的代码为例: ` struct TestData{ pub cmd_type: u16 }

` 原来数据库已经把这个字段命名为type了,如果字段名改为type就与关键字冲突了,我想把cmd_type对应上type字段,请问有对应的宏定义吗? 另有没有定义来申明字段为自增长主键?

r#type: u16

from rbatis.

Issues-translate-bot avatar Issues-translate-bot commented on June 12, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Take the following code as an example: ` struct TestData{ pub cmd_type: u16 }

` It turns out that the database has named this field type. If the field name is changed to type, it will conflict with the keyword. I want to map cmd_type to the type field. Is there a corresponding macro definition? Is there any definition to declare the field as an auto-increasing primary key?

r#type: u16

from rbatis.

aohanhe avatar aohanhe commented on June 12, 2024

thanks

from rbatis.

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.