mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00

This statement (for now) outputs the name and types of the different attributes in a table. It's not standard SQL but all DBMSs that I know of implement a sort of statement for such functionality. Since the output of DESCRIBE TABLE is just a relation, an internal schema, `master` was created and a table definition for DESCRIBE into it. The table definition and the master schema are not accessible by the user.
37 lines
719 B
CMake
37 lines
719 B
CMake
set(SOURCES
|
|
AST/CreateSchema.cpp
|
|
AST/CreateTable.cpp
|
|
AST/Describe.cpp
|
|
AST/Expression.cpp
|
|
AST/Insert.cpp
|
|
AST/Lexer.cpp
|
|
AST/Parser.cpp
|
|
AST/Select.cpp
|
|
AST/Statement.cpp
|
|
AST/SyntaxHighlighter.cpp
|
|
AST/Token.cpp
|
|
BTree.cpp
|
|
BTreeIterator.cpp
|
|
Database.cpp
|
|
HashIndex.cpp
|
|
Heap.cpp
|
|
Index.cpp
|
|
Key.cpp
|
|
Meta.cpp
|
|
ResultSet.cpp
|
|
Row.cpp
|
|
Serializer.cpp
|
|
SQLClient.cpp
|
|
SQLResult.cpp
|
|
TreeNode.cpp
|
|
Tuple.cpp
|
|
Value.cpp
|
|
)
|
|
|
|
set(GENERATED_SOURCES
|
|
../../Services/SQLServer/SQLClientEndpoint.h
|
|
../../Services/SQLServer/SQLServerEndpoint.h
|
|
)
|
|
|
|
serenity_lib(LibSQL sql)
|
|
target_link_libraries(LibSQL LibCore LibSyntax LibRegex)
|