Add text version of diagram to illustrate library modeling options

This commit is contained in:
Michael Hohn
2025-07-25 11:45:33 -07:00
committed by =Michael Hohn
parent b34dc262da
commit d12c157b25

56
codeql-modeling.txt Normal file
View File

@@ -0,0 +1,56 @@
┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Modeling (framework/library) │
│ ql library enhancements │
│ ┌─────────────────────┐ ┌────────────────────────────┐ │
│ │ models as data │ │ QL customization │ │
│ │ │ │ │ │
│ └─────────────────────┘ └────────────────────────────┘ │
│ │ │ │
│ │ │ │
│ ┌──────────┴────────────┐ │ │
│ │ │ │ │
│ │ │ ▼ │
│ ▼ ▼ ┌─────────────────────────────┐ │
│┌─────────────────────┐ ┌─────────────────────┐ │ Customizations.qll │ │
││ sqlite Java example │ │ sqlite C example │ │ │ │
││ in-editor │ │ out-of-editor │ │ ┌───────────────────────┐ │ │
││ │ │ │ │ │ source addition │ │ │
│└─────────────────────┘ └─────────────────────┘ │ │ │ │ │
│ │ │ │ └───────────────────────┘ │ │
│ ┌───┴──────────────────┬────┴──────────────────┐ │ │ │
│ │ │ │ │ ┌───────────────────────┐ │ │
│ ▼ ▼ ▼ │ │ sink addition │ │ │
├──────────────┐ ┌────────────┐ ┌──────────────┐ │ │ │ │ │
│ model editor │ │ text edit │ │ gpt │ │ └───────────────────────┘ │ │
├──────────────┘ └────────────┘ └──────────────┘ │ │ │
│ │ │ │ └─────────────────────────────┘ │
│ └──────────────────────┼───────────────────────┘ │ │
│ │ │ │
│ ▼ │ │
│ ┌────────────────────────────────────────────────────┐ │ │
│ │.github/codeql/extensions/sqlite-db/models/sqlite.mo│ │ │
│ └────────────────────────────────────────────────────┘ │ │
│ │ │ │
└──────────────────────────────┼────────────────────────────────────────────────────┼─────────────────┘
│ │
│ │
│ ┌─────────────────┘
│ │
│ │
┌─────┴──────────────────────────────────┤
│ │
│ │
│ │
│ │
┌──────────────────────┼────────────────────────────────────────┼───────────────────┐
│ │ queries │ │
│ ▼ ▼ │
│ ┌──────────────────────────┐ ┌────────────────────────────┐ │
│ │codeql-sqlite/Illustration│ │ │ │
│ │ s.ql │ │ │ │
│ └──────────────────────────┘ │../ql/java/ql/src/Security/C│ │
│ │ WE/CWE-089/SqlTainted.ql │ │
│ │ │ │
│ │ │ │
│ └────────────────────────────┘ │
└───────────────────────────────────────────────────────────────────────────────────┘