1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00
serenity/Userland/Libraries/LibSQL/CMakeLists.txt
Jan de Visser 1037d6b0eb LibSQL: Invent statement execution machinery and CREATE SCHEMA statement
This patch introduces the ability execute parsed SQL statements. The
abstract AST Statement node now has a virtual 'execute' method. This
method takes a Database object as parameter and returns a SQLResult
object.

Also introduced here is the CREATE SCHEMA statement. Tables live in a
schema, and if no schema is present in a table reference the 'default'
schema is implied. This schema is created if it doesn't yet exist when
a Database object is created.

Finally, as a proof of concept, the CREATE SCHEMA and CREATE TABLE
statements received an 'execute' implementation. The CREATE TABLE
method is not able to create tables created from SQL queries yet.
2021-07-08 17:55:59 +04:30

23 lines
406 B
CMake

set(SOURCES
AST/CreateSchema.cpp
AST/CreateTable.cpp
AST/Lexer.cpp
AST/Parser.cpp
AST/SyntaxHighlighter.cpp
AST/Token.cpp
BTree.cpp
BTreeIterator.cpp
Database.cpp
HashIndex.cpp
Heap.cpp
Index.cpp
Key.cpp
Meta.cpp
Row.cpp
TreeNode.cpp
Tuple.cpp
Value.cpp
)
serenity_lib(LibSQL sql)
target_link_libraries(LibSQL LibCore LibSyntax)