Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3 语法差异记录 #12

Open
orca-zhang opened this issue Aug 22, 2022 · 1 comment
Open

sqlite3 语法差异记录 #12

orca-zhang opened this issue Aug 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@orca-zhang
Copy link
Owner

orca-zhang commented Aug 22, 2022

orcas 在使用sqlite3+borm过程中发现一些差异:

  • INSERT IGNORE INTO -> INSERT OR IGNORE INTO
  • FORCE INDEX(idx_name) -> INDEXED BY idx_name
  • ON DUPLICATE KEY UPDATE field1=value1, field2=value2... -> ON CONFLICT(field) DO UPDATE SET field1=value1, field2=value2...
  • 支持*?的模式匹配GLOB(field, matcher)
  • UPDATE/DELETE语句不能添加LIMIT约束
  • LIMIT 2,3 -> LIMIT 3 OFFSET 2
@orca-zhang
Copy link
Owner Author

https://github.com/orca-zhang/borm/tree/sqlite 分支已全部支持

@orca-zhang orca-zhang added the enhancement New feature or request label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant