- Get scan metadata
- read automatically if
--timing
is enabled
- read automatically if
- Set search path
- Can be automatically during session startup
- Can be set by the user using meta commands
- Cache commands
- Can be automatically during session startup
- Can be set by the user using meta commands
- Introspection tables
- Written automatically for each database connection
- Read by system if
--tag
or--where
are used forcheck
A thin wrapper around the raw database connection which caches the search path
and the scan metadata id
- Get a database connection from the pool
- if not found in
session cache map
- create a
DatabaseSession
for the connection - Persist
DatabaseSession
insession cache map
- create a
- Set cache parameters (if required)
- If client
cache
is enabled, enable clientcache
on the connection - If client
cache ttl
is set, set thecache ttl
on the connection
- If client
- Ensure
search path
- Load the
search path
of thesteampipe
user - db query - Get the resolved
search path
based on thesearch_path
andsearch_path_prefix
configs (custom_search_path
) - if the
loaded search path
andresolved search path
differ, set theresolved search path
on the connection
- Load the