# Function analyzeSql

- analyzeSql(request: AnalyzeRequest): Promise<AnalyzeResult>

  Analyze SQL and return lineage information.

  #### Parameters

  - request: AnalyzeRequest

    The analysis request containing SQL and options

  #### Returns Promise<AnalyzeResult>

  The analysis result with lineage graphs and issues

  #### Example

      const result = await analyzeSql({
        sql: 'SELECT * FROM users JOIN orders ON users.id = orders.user_id',
        dialect: 'postgres'
      });

      console.log(result.statements[0].nodes); // Tables: users, orders
      console.log(result.summary.hasErrors); // false

  - Defined in analyzer.ts:36