Statement.cpp 421 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2021, Jan de Visser <jan@de-visser.net>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibSQL/AST/AST.h>
  7. #include <LibSQL/Database.h>
  8. #include <LibSQL/Meta.h>
  9. #include <LibSQL/Row.h>
  10. namespace SQL::AST {
  11. ResultOr<ResultSet> Statement::execute(AK::NonnullRefPtr<Database> database) const
  12. {
  13. ExecutionContext context { move(database), this, nullptr };
  14. return execute(context);
  15. }
  16. }