MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / DatabaseSQLite

Method DatabaseSQLite

src/Databases/SQLite/DatabaseSQLite.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37DatabaseSQLite::DatabaseSQLite(
38 ContextPtr context_,
39 const ASTStorage * database_engine_define_,
40 bool is_attach_,
41 const String & database_path_)
42 : DatabaseWithAltersOnDiskBase("SQLite")
43 , WithContext(context_->getGlobalContext())
44 , database_engine_define(database_engine_define_->clone())
45 , database_path(database_path_)
46 , log(getLogger("DatabaseSQLite"))
47{
48 sqlite_db = openSQLiteDB(database_path_, context_, !is_attach_);
49}
50
51
52bool DatabaseSQLite::empty() const

Callers

nothing calls this directly

Calls 4

openSQLiteDBFunction · 0.85
getLoggerFunction · 0.50
getGlobalContextMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected