MCPcopy Create free account

hub / github.com/benodiwal/pg_ai_query / functions

Functions84 in github.com/benodiwal/pg_ai_query

↓ 15 callersFunctiongetConfigFixture
tests/test_helpers.hpp:17
↓ 9 callersFunctionformatAPIError
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 callersMethodpath
tests/test_helpers.hpp:45
↓ 7 callersFunctionread_file
src/utils.cpp:14
↓ 4 callersMethodgenerate_text
src/providers/gemini/client.cpp:170
↓ 2 callersFunctiongetFixturesPath
tests/test_helpers.hpp:9
↓ 2 callersFunctionread_file_or_throw
src/utils.cpp:40
↓ 1 callersFunctiongetResponseFixture
tests/test_helpers.hpp:21
↓ 1 callersFunctionreadTestFile
tests/test_helpers.hpp:25
↓ 1 callersMethodtoString
* @brief Convert to string, returns empty string if null */
src/include/spi_connection.hpp:91
MethodConfiguration
src/config.cpp:17
MethodGeminiClient
src/providers/gemini/client.cpp:19
MethodProviderConfig
Default constructor
src/include/config.hpp:54
MethodSPIConnection
src/core/spi_connection.cpp:5
MethodSPIConnection
src/include/spi_connection.hpp:25
MethodSPIValue
src/include/spi_connection.hpp:58
MethodSetUp
tests/unit/test_utils.cpp:16
MethodSetUp
tests/unit/test_provider_selector.cpp:14
MethodSetUp
tests/unit/test_config.cpp:12
FunctionTEST
Test TempConfigFile helper
tests/unit/test_utils.cpp:184
FunctionTEST
Test that ProviderSelectionResult has expected default values
tests/unit/test_provider_selector.cpp:183
FunctionTEST
Test Configuration default constructor
tests/unit/test_config.cpp:297
FunctionTEST_F
Test plain text output - basic query only
tests/unit/test_response_formatter.cpp:51
FunctionTEST_F
Test read_file with valid file
tests/unit/test_utils.cpp:34
FunctionTEST_F
Test explicit OpenAI provider selection with API key parameter
tests/unit/test_provider_selector.cpp:23
FunctionTEST_F
Test loading a valid complete configuration
tests/unit/test_config.cpp:19
FunctionTEST_F
Test parsing valid JSON directly
tests/unit/test_query_parser.cpp:24
MethodTearDown
tests/unit/test_utils.cpp:21
MethodTempConfigFile
tests/test_helpers.hpp:36
FunctionWriteCallback
Callback for libcurl to write response data
src/providers/gemini/client.cpp:12
MethodaccessesSystemTables
src/core/query_parser.cpp:35
MethodautoSelectProvider
src/core/provider_selector.cpp:57
MethodbuildPrompt
src/core/query_generator.cpp:161
Methodbuild_request_body
src/providers/gemini/client.cpp:23
MethodcreateBasicResult
tests/unit/test_response_formatter.cpp:17
MethodcreateClient
src/core/ai_client_factory.cpp:10
MethodcreateConfig
tests/unit/test_response_formatter.cpp:37
MethodcreateJSONResponse
src/core/response_formatter.cpp:18
MethodcreatePlainTextResponse
src/core/response_formatter.cpp:49
MethodcreateResultWithWarnings
tests/unit/test_response_formatter.cpp:27
MethodcreateTempFile
tests/unit/test_utils.cpp:23
Methoddebug
src/core/logger.cpp:13
Methoderror
src/core/logger.cpp:43
MethodexplainQuery
src/core/query_generator.cpp:511
Functionexplain_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
MethodextractSQLFromResponse
src/core/query_parser.cpp:10
MethodformatResponse
src/core/response_formatter.cpp:8
MethodformatSchemaForAI
src/core/query_generator.cpp:456
MethodformatTableDetailsForAI
src/core/query_generator.cpp:477
MethodformatVisualization
src/core/response_formatter.cpp:98
MethodformatWarnings
src/core/response_formatter.cpp:82
MethodgenerateQuery
src/core/query_generator.cpp:34
Functiongenerate_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
Methodget
* @brief Get the raw char* value */
src/include/spi_connection.hpp:86
MethodgetDatabaseTables
src/core/query_generator.cpp:214
MethodgetDefaultModel
src/core/ai_client_factory.cpp:85
MethodgetHomeDirectory
src/config.cpp:292
MethodgetProviderConfig
src/config.cpp:92
MethodgetProviderConfigMutable
src/config.cpp:283
MethodgetTableDetails
src/core/query_generator.cpp:293
Functionget_database_tables
* get_database_tables() * * Returns JSON array of all tables in the database with their schema info */
src/pg_ai_query.cpp:81
Functionget_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
MethodhasErrorIndicators
src/core/query_parser.cpp:43
Methodinfo
src/core/logger.cpp:23
MethodisConnected
* @brief Check if the SPI connection is valid */
src/include/spi_connection.hpp:34
MethodloadConfig
src/config.cpp:44
MethodloadEnvConfig
src/config.cpp:80
MethodlogModelSettings
src/core/query_generator.cpp:201
Methodmake_http_request
src/providers/gemini/client.cpp:119
MethodparseConfig
src/config.cpp:136
MethodparseQueryResponse
src/core/query_parser.cpp:78
Methodparse_response
src/providers/gemini/client.cpp:58
MethodproviderToString
src/config.cpp:105
MethodreadResponseFixture
tests/unit/test_query_parser.cpp:14
Methodreset
src/config.cpp:131
MethodselectExplicitProvider
src/core/provider_selector.cpp:25
MethodselectProvider
src/core/provider_selector.cpp:7
MethodsetLoggingEnabled
src/core/logger.cpp:9
MethodstringToProvider
src/config.cpp:118
Methodwarning
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