import { Struct } from "../struct-DWOuk3SS.js"; import { Timestamp } from "../timestamp-D0q8Zt_J.js"; import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime"; //#region generated/ts/postgresql/postgresql.d.ts /** * PostgreSQL query request - used internally by PostgreSQL instrumentation SDK * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery */ interface PostgreSQLQuery { /** * Core query information * * @generated from protobuf field: string text = 1 */ text: string; /** * @generated from protobuf field: repeated string values = 2 */ values: string[]; /** * @generated from protobuf field: string client_type = 3 */ clientType: string; /** * Connection context * * @generated from protobuf field: tusk.drift.instrumentation.postgresql.v1.PostgreSQLConnection connection = 4 */ connection?: PostgreSQLConnection; /** * @generated from protobuf field: tusk.drift.instrumentation.postgresql.v1.QueryOptions options = 5 */ options?: QueryOptions; /** * Query metadata * * @generated from protobuf field: string query_id = 6 */ queryId: string; /** * @generated from protobuf field: map tags = 7 */ tags: { [key: string]: string; }; } /** * PostgreSQL connection information * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLConnection */ interface PostgreSQLConnection { /** * @generated from protobuf field: string database_name = 1 */ databaseName: string; /** * @generated from protobuf field: string username = 2 */ username: string; /** * @generated from protobuf field: string host = 3 */ host: string; /** * @generated from protobuf field: int32 port = 4 */ port: number; /** * @generated from protobuf field: string application_name = 5 */ applicationName: string; /** * @generated from protobuf field: string connection_id = 6 */ connectionId: string; /** * @generated from protobuf field: bool ssl_enabled = 7 */ sslEnabled: boolean; /** * @generated from protobuf field: string server_version = 8 */ serverVersion: string; } /** * Query execution options * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.QueryOptions */ interface QueryOptions { /** * @generated from protobuf field: int32 statement_timeout = 1 */ statementTimeout: number; /** * @generated from protobuf field: int32 query_timeout = 2 */ queryTimeout: number; /** * @generated from protobuf field: bool binary_mode = 3 */ binaryMode: boolean; /** * @generated from protobuf field: string cursor_name = 4 */ cursorName: string; /** * @generated from protobuf field: int32 fetch_size = 5 */ fetchSize: number; /** * @generated from protobuf field: bool read_only = 6 */ readOnly: boolean; /** * @generated from protobuf field: map custom_options = 7 */ customOptions: { [key: string]: string; }; } /** * PostgreSQL query result - matches your trace data structure * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLResult */ interface PostgreSQLResult { /** * Core result information (from your trace data) * * @generated from protobuf field: string command = 1 */ command: string; /** * @generated from protobuf field: int32 row_count = 2 */ rowCount: number; /** * @generated from protobuf field: optional int32 oid = 3 */ oid?: number; /** * Result data * * @generated from protobuf field: repeated google.protobuf.Struct rows = 4 */ rows: Struct[]; /** * @generated from protobuf field: repeated tusk.drift.instrumentation.postgresql.v1.PostgreSQLField fields = 5 */ fields: PostgreSQLField[]; /** * Query execution metadata * * @generated from protobuf field: tusk.drift.instrumentation.postgresql.v1.QueryExecutionInfo execution_info = 6 */ executionInfo?: QueryExecutionInfo; /** * Error information (if query failed) * * @generated from protobuf field: optional tusk.drift.instrumentation.postgresql.v1.PostgreSQLError error = 7 */ error?: PostgreSQLError; } /** * PostgreSQL field definition (matches your trace data) * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLField */ interface PostgreSQLField { /** * @generated from protobuf field: string name = 1 */ name: string; /** * @generated from protobuf field: int32 table_id = 2 */ tableId: number; /** * @generated from protobuf field: int32 column_id = 3 */ columnId: number; /** * @generated from protobuf field: int32 data_type_id = 4 */ dataTypeId: number; /** * @generated from protobuf field: int32 data_type_size = 5 */ dataTypeSize: number; /** * @generated from protobuf field: int32 data_type_modifier = 6 */ dataTypeModifier: number; /** * @generated from protobuf field: string format = 7 */ format: string; /** * Additional field metadata * * @generated from protobuf field: string data_type_name = 8 */ dataTypeName: string; /** * @generated from protobuf field: bool nullable = 9 */ nullable: boolean; /** * @generated from protobuf field: bool primary_key = 10 */ primaryKey: boolean; } /** * Query execution information * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.QueryExecutionInfo */ interface QueryExecutionInfo { /** * Timing breakdown * * @generated from protobuf field: int64 parse_time_ms = 1 */ parseTimeMs: bigint; /** * @generated from protobuf field: int64 plan_time_ms = 2 */ planTimeMs: bigint; /** * @generated from protobuf field: int64 execute_time_ms = 3 */ executeTimeMs: bigint; /** * @generated from protobuf field: int64 total_time_ms = 4 */ totalTimeMs: bigint; /** * Execution statistics * * @generated from protobuf field: int64 rows_examined = 5 */ rowsExamined: bigint; /** * @generated from protobuf field: int64 rows_returned = 6 */ rowsReturned: bigint; /** * @generated from protobuf field: int64 bytes_sent = 7 */ bytesSent: bigint; /** * @generated from protobuf field: int64 bytes_received = 8 */ bytesReceived: bigint; /** * Query plan information (optional) * * @generated from protobuf field: string execution_plan = 9 */ executionPlan: string; /** * @generated from protobuf field: repeated string notices = 10 */ notices: string[]; } /** * PostgreSQL-specific error information * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLError */ interface PostgreSQLError { /** * @generated from protobuf field: string sql_state = 1 */ sqlState: string; /** * @generated from protobuf field: string message = 2 */ message: string; /** * @generated from protobuf field: string detail = 3 */ detail: string; /** * @generated from protobuf field: string hint = 4 */ hint: string; /** * @generated from protobuf field: string position = 5 */ position: string; /** * @generated from protobuf field: string where = 6 */ where: string; /** * @generated from protobuf field: string schema_name = 7 */ schemaName: string; /** * @generated from protobuf field: string table_name = 8 */ tableName: string; /** * @generated from protobuf field: string column_name = 9 */ columnName: string; /** * @generated from protobuf field: string constraint_name = 10 */ constraintName: string; /** * @generated from protobuf field: string data_type_name = 11 */ dataTypeName: string; /** * @generated from protobuf field: string file = 12 */ file: string; /** * @generated from protobuf field: string line = 13 */ line: string; /** * @generated from protobuf field: string routine = 14 */ routine: string; } /** * Prepared statement information * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLPreparedStatement */ interface PostgreSQLPreparedStatement { /** * @generated from protobuf field: string statement_name = 1 */ statementName: string; /** * @generated from protobuf field: string query_text = 2 */ queryText: string; /** * @generated from protobuf field: repeated tusk.drift.instrumentation.postgresql.v1.PostgreSQLParameterType parameter_types = 3 */ parameterTypes: PostgreSQLParameterType[]; /** * @generated from protobuf field: google.protobuf.Timestamp prepared_at = 4 */ preparedAt?: Timestamp; /** * @generated from protobuf field: int32 execution_count = 5 */ executionCount: number; } /** * Parameter type information for prepared statements * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLParameterType */ interface PostgreSQLParameterType { /** * @generated from protobuf field: int32 position = 1 */ position: number; /** * @generated from protobuf field: int32 data_type_id = 2 */ dataTypeId: number; /** * @generated from protobuf field: string data_type_name = 3 */ dataTypeName: string; /** * @generated from protobuf field: bool nullable = 4 */ nullable: boolean; } /** * Transaction context * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLTransaction */ interface PostgreSQLTransaction { /** * @generated from protobuf field: string transaction_id = 1 */ transactionId: string; /** * @generated from protobuf field: tusk.drift.instrumentation.postgresql.v1.TransactionState state = 2 */ state: TransactionState; /** * @generated from protobuf field: tusk.drift.instrumentation.postgresql.v1.IsolationLevel isolation_level = 3 */ isolationLevel: IsolationLevel; /** * @generated from protobuf field: bool read_only = 4 */ readOnly: boolean; /** * @generated from protobuf field: google.protobuf.Timestamp started_at = 5 */ startedAt?: Timestamp; } /** * Batch query support * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatch */ interface PostgreSQLBatch { /** * @generated from protobuf field: repeated tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery queries = 1 */ queries: PostgreSQLQuery[]; /** * @generated from protobuf field: bool stop_on_error = 2 */ stopOnError: boolean; /** * @generated from protobuf field: bool return_results = 3 */ returnResults: boolean; } /** * Batch result * * @generated from protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatchResult */ interface PostgreSQLBatchResult { /** * @generated from protobuf field: repeated tusk.drift.instrumentation.postgresql.v1.PostgreSQLResult results = 1 */ results: PostgreSQLResult[]; /** * @generated from protobuf field: int32 successful_queries = 2 */ successfulQueries: number; /** * @generated from protobuf field: int32 failed_queries = 3 */ failedQueries: number; /** * @generated from protobuf field: optional tusk.drift.instrumentation.postgresql.v1.PostgreSQLError first_error = 4 */ firstError?: PostgreSQLError; } /** * Transaction state enumeration * * @generated from protobuf enum tusk.drift.instrumentation.postgresql.v1.TransactionState */ declare enum TransactionState { /** * @generated from protobuf enum value: TRANSACTION_STATE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Not in a transaction * * @generated from protobuf enum value: TRANSACTION_STATE_IDLE = 1; */ IDLE = 1, /** * Transaction active * * @generated from protobuf enum value: TRANSACTION_STATE_ACTIVE = 2; */ ACTIVE = 2, /** * Idle in transaction * * @generated from protobuf enum value: TRANSACTION_STATE_IDLE_IN_TRANSACTION = 3; */ IDLE_IN_TRANSACTION = 3, /** * Idle in failed transaction * * @generated from protobuf enum value: TRANSACTION_STATE_IDLE_IN_FAILED_TRANSACTION = 4; */ IDLE_IN_FAILED_TRANSACTION = 4, } /** * PostgreSQL isolation levels * * @generated from protobuf enum tusk.drift.instrumentation.postgresql.v1.IsolationLevel */ declare enum IsolationLevel { /** * @generated from protobuf enum value: ISOLATION_LEVEL_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from protobuf enum value: ISOLATION_LEVEL_READ_UNCOMMITTED = 1; */ READ_UNCOMMITTED = 1, /** * @generated from protobuf enum value: ISOLATION_LEVEL_READ_COMMITTED = 2; */ READ_COMMITTED = 2, /** * @generated from protobuf enum value: ISOLATION_LEVEL_REPEATABLE_READ = 3; */ REPEATABLE_READ = 3, /** * @generated from protobuf enum value: ISOLATION_LEVEL_SERIALIZABLE = 4; */ SERIALIZABLE = 4, } declare class PostgreSQLQuery$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLQuery; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLQuery): PostgreSQLQuery; private binaryReadMap7; internalBinaryWrite(message: PostgreSQLQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLQuery */ declare const PostgreSQLQuery: PostgreSQLQuery$Type; declare class PostgreSQLConnection$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLConnection; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLConnection): PostgreSQLConnection; internalBinaryWrite(message: PostgreSQLConnection, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLConnection */ declare const PostgreSQLConnection: PostgreSQLConnection$Type; declare class QueryOptions$Type extends MessageType { constructor(); create(value?: PartialMessage): QueryOptions; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryOptions): QueryOptions; private binaryReadMap7; internalBinaryWrite(message: QueryOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.QueryOptions */ declare const QueryOptions: QueryOptions$Type; declare class PostgreSQLResult$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLResult): PostgreSQLResult; internalBinaryWrite(message: PostgreSQLResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLResult */ declare const PostgreSQLResult: PostgreSQLResult$Type; declare class PostgreSQLField$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLField; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLField): PostgreSQLField; internalBinaryWrite(message: PostgreSQLField, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLField */ declare const PostgreSQLField: PostgreSQLField$Type; declare class QueryExecutionInfo$Type extends MessageType { constructor(); create(value?: PartialMessage): QueryExecutionInfo; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: QueryExecutionInfo): QueryExecutionInfo; internalBinaryWrite(message: QueryExecutionInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.QueryExecutionInfo */ declare const QueryExecutionInfo: QueryExecutionInfo$Type; declare class PostgreSQLError$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLError; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLError): PostgreSQLError; internalBinaryWrite(message: PostgreSQLError, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLError */ declare const PostgreSQLError: PostgreSQLError$Type; declare class PostgreSQLPreparedStatement$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLPreparedStatement; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLPreparedStatement): PostgreSQLPreparedStatement; internalBinaryWrite(message: PostgreSQLPreparedStatement, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLPreparedStatement */ declare const PostgreSQLPreparedStatement: PostgreSQLPreparedStatement$Type; declare class PostgreSQLParameterType$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLParameterType; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLParameterType): PostgreSQLParameterType; internalBinaryWrite(message: PostgreSQLParameterType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLParameterType */ declare const PostgreSQLParameterType: PostgreSQLParameterType$Type; declare class PostgreSQLTransaction$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLTransaction; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLTransaction): PostgreSQLTransaction; internalBinaryWrite(message: PostgreSQLTransaction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLTransaction */ declare const PostgreSQLTransaction: PostgreSQLTransaction$Type; declare class PostgreSQLBatch$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLBatch; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLBatch): PostgreSQLBatch; internalBinaryWrite(message: PostgreSQLBatch, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatch */ declare const PostgreSQLBatch: PostgreSQLBatch$Type; declare class PostgreSQLBatchResult$Type extends MessageType { constructor(); create(value?: PartialMessage): PostgreSQLBatchResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostgreSQLBatchResult): PostgreSQLBatchResult; internalBinaryWrite(message: PostgreSQLBatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.instrumentation.postgresql.v1.PostgreSQLBatchResult */ declare const PostgreSQLBatchResult: PostgreSQLBatchResult$Type; //#endregion export { IsolationLevel, PostgreSQLBatch, PostgreSQLBatchResult, PostgreSQLConnection, PostgreSQLError, PostgreSQLField, PostgreSQLParameterType, PostgreSQLPreparedStatement, PostgreSQLQuery, PostgreSQLResult, PostgreSQLTransaction, QueryExecutionInfo, QueryOptions, TransactionState }; //# sourceMappingURL=postgresql.d.ts.map