Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benodiwal/pg_ai_query
/ functions
Functions
84 in github.com/benodiwal/pg_ai_query
⨍
Functions
84
◇
Types & classes
33
↓ 15 callers
Function
getConfigFixture
tests/test_helpers.hpp:17
↓ 9 callers
Function
formatAPIError
CR-someday @benodiwal: This is the basic version of API Error formatting, there is a lot of place for improvement. Currently it focuses on wrong model
src/utils.cpp:51
↓ 7 callers
Method
path
tests/test_helpers.hpp:45
↓ 7 callers
Function
read_file
src/utils.cpp:14
↓ 4 callers
Method
generate_text
src/providers/gemini/client.cpp:170
↓ 2 callers
Function
getFixturesPath
tests/test_helpers.hpp:9
↓ 2 callers
Function
read_file_or_throw
src/utils.cpp:40
↓ 1 callers
Function
getResponseFixture
tests/test_helpers.hpp:21
↓ 1 callers
Function
readTestFile
tests/test_helpers.hpp:25
↓ 1 callers
Method
toString
* @brief Convert to string, returns empty string if null */
src/include/spi_connection.hpp:91
Method
Configuration
src/config.cpp:17
Method
GeminiClient
src/providers/gemini/client.cpp:19
Method
ProviderConfig
Default constructor
src/include/config.hpp:54
Method
SPIConnection
src/core/spi_connection.cpp:5
Method
SPIConnection
src/include/spi_connection.hpp:25
Method
SPIValue
src/include/spi_connection.hpp:58
Method
SetUp
tests/unit/test_utils.cpp:16
Method
SetUp
tests/unit/test_provider_selector.cpp:14
Method
SetUp
tests/unit/test_config.cpp:12
Function
TEST
Test TempConfigFile helper
tests/unit/test_utils.cpp:184
Function
TEST
Test that ProviderSelectionResult has expected default values
tests/unit/test_provider_selector.cpp:183
Function
TEST
Test Configuration default constructor
tests/unit/test_config.cpp:297
Function
TEST_F
Test plain text output - basic query only
tests/unit/test_response_formatter.cpp:51
Function
TEST_F
Test read_file with valid file
tests/unit/test_utils.cpp:34
Function
TEST_F
Test explicit OpenAI provider selection with API key parameter
tests/unit/test_provider_selector.cpp:23
Function
TEST_F
Test loading a valid complete configuration
tests/unit/test_config.cpp:19
Function
TEST_F
Test parsing valid JSON directly
tests/unit/test_query_parser.cpp:24
Method
TearDown
tests/unit/test_utils.cpp:21
Method
TempConfigFile
tests/test_helpers.hpp:36
Function
WriteCallback
Callback for libcurl to write response data
src/providers/gemini/client.cpp:12
Method
accessesSystemTables
src/core/query_parser.cpp:35
Method
autoSelectProvider
src/core/provider_selector.cpp:57
Method
buildPrompt
src/core/query_generator.cpp:161
Method
build_request_body
src/providers/gemini/client.cpp:23
Method
createBasicResult
tests/unit/test_response_formatter.cpp:17
Method
createClient
src/core/ai_client_factory.cpp:10
Method
createConfig
tests/unit/test_response_formatter.cpp:37
Method
createJSONResponse
src/core/response_formatter.cpp:18
Method
createPlainTextResponse
src/core/response_formatter.cpp:49
Method
createResultWithWarnings
tests/unit/test_response_formatter.cpp:27
Method
createTempFile
tests/unit/test_utils.cpp:23
Method
debug
src/core/logger.cpp:13
Method
error
src/core/logger.cpp:43
Method
explainQuery
src/core/query_generator.cpp:511
Function
explain_query
* explain_query(query_text text, api_key text DEFAULT NULL, * provider text DEFAULT 'auto') * * Runs EXPLAIN ANALYZE on a query and returns an AI-g
src/pg_ai_query.cpp:176
Method
extractSQLFromResponse
src/core/query_parser.cpp:10
Method
formatResponse
src/core/response_formatter.cpp:8
Method
formatSchemaForAI
src/core/query_generator.cpp:456
Method
formatTableDetailsForAI
src/core/query_generator.cpp:477
Method
formatVisualization
src/core/response_formatter.cpp:98
Method
formatWarnings
src/core/response_formatter.cpp:82
Method
generateQuery
src/core/query_generator.cpp:34
Function
generate_query
* generate_query(natural_language_query text, api_key text DEFAULT NULL, * provider text DEFAULT 'auto') * * Generates a SQL query from natural lan
src/pg_ai_query.cpp:36
Method
get
* @brief Get the raw char* value */
src/include/spi_connection.hpp:86
Method
getDatabaseTables
src/core/query_generator.cpp:214
Method
getDefaultModel
src/core/ai_client_factory.cpp:85
Method
getHomeDirectory
src/config.cpp:292
Method
getProviderConfig
src/config.cpp:92
Method
getProviderConfigMutable
src/config.cpp:283
Method
getTableDetails
src/core/query_generator.cpp:293
Function
get_database_tables
* get_database_tables() * * Returns JSON array of all tables in the database with their schema info */
src/pg_ai_query.cpp:81
Function
get_table_details
* get_table_details(table_name text, schema_name text DEFAULT 'public') * * Returns detailed JSON information about a specific table including colum
src/pg_ai_query.cpp:118
Method
hasErrorIndicators
src/core/query_parser.cpp:43
Method
info
src/core/logger.cpp:23
Method
isConnected
* @brief Check if the SPI connection is valid */
src/include/spi_connection.hpp:34
Method
loadConfig
src/config.cpp:44
Method
loadEnvConfig
src/config.cpp:80
Method
logModelSettings
src/core/query_generator.cpp:201
Method
make_http_request
src/providers/gemini/client.cpp:119
Method
parseConfig
src/config.cpp:136
Method
parseQueryResponse
src/core/query_parser.cpp:78
Method
parse_response
src/providers/gemini/client.cpp:58
Method
providerToString
src/config.cpp:105
Method
readResponseFixture
tests/unit/test_query_parser.cpp:14
Method
reset
src/config.cpp:131
Method
selectExplicitProvider
src/core/provider_selector.cpp:25
Method
selectProvider
src/core/provider_selector.cpp:7
Method
setLoggingEnabled
src/core/logger.cpp:9
Method
stringToProvider
src/config.cpp:118
Method
warning
src/core/logger.cpp:33
Method
~GeminiClient
src/include/gemini_client.h:26
Method
~SPIConnection
src/core/spi_connection.cpp:14
Method
~SPIValue
src/include/spi_connection.hpp:59
Method
~TempConfigFile
tests/test_helpers.hpp:43