Swiftask
  • Quick start
  • Key concepts
    • AI Tools Hub
    • Agents
    • Knowledge base
    • Skills
    • Projects
    • Automation
  • AI tools hub
    • Introduction
    • Chat interface
    • Tokens
    • List of AI features
    • AI suggestions
    • FAQ
  • Agents
    • Introduction
    • Create an agent step by step
    • How to evaluate your agent
    • Multi-agents
    • Widget
    • Share agent
    • FAQ
  • Knowledge base
    • Introduction
    • Data connectors
      • Rich text
      • PDF File
      • Azure Document Loader
      • YouTube
      • Apify Dataset
      • PowerPoint File
      • Excel File
      • DOCX File
      • SQL Database
      • REST API
      • JSON File
      • CSV File
      • SQL Database Query
      • Website
      • Webpage
      • Sitemap
      • Dropbox files
      • Google drive files
    • Create a knowledge base
    • Attach Knowledge base to your agent
    • Share knowledge base
    • FAQ
  • Skills
    • Introduction
    • Skills library
      • Webpage Content Parsing
      • GitLab File Creation
      • Browsing with Perplexity
      • Open API
      • Retriever data from external sources
      • GitHub pull request diff retriever
      • GitHub pull request comment
      • Export table to Excel
      • Export text to PDF
      • GitHub file content
      • GitHub pull request info
      • OpenDataSoft
      • Agent as Skill
      • Swiftask AI recommandation
      • LinkedIn Share
      • Prismic migration create
      • Github create file
    • Create a new skill
    • Attach skill to your agent
    • FAQ
  • Projects
    • Introduction
    • Create a project
    • Generate task
    • Task AI chat
    • Organize chat in project
    • Project agent
    • FAQ
  • Automation
    • Introduction
    • Create an automation
  • Workspace admin
    • Introduction
    • Invite collaborators to join your workspace
    • Referral
    • Subscription renewal and Credit explanation
    • Purchase credits
    • Share agent
    • Subscription Pro plan/Team plan & token distribution
    • Create a project
    • Cancel subscription /Manage payment method
    • Personnal data security
    • SSO For enterprise
  • Use cases & Tutorials
    • Chat with multi-AI
    • Chat with PDF file
    • Import data - Webpage
    • How to generate an image on Swiftask
    • Import data (Azure Document Loader) - PDF
    • How to generate videos on Swiftask
    • Transform your ideas into videos with LUMA AI
    • Upgrade subscription plan
    • How to create an agent? step by step
    • Create AI agents for your business
    • Integrate external API in your agent
    • Create a professional landing page in 5 minutes
    • How to automate your blog content creation with an AI agent
    • How to evaluate your AI agent
    • How to create a Community Manager agent
  • Developer
    • List of AI and agents accessible via API
    • Access AI and agent through API
    • OpenAI SDK
  • Support & Social network
  • Changelog
Powered by GitBook
On this page
  1. Knowledge base
  2. Data connectors

SQL Database Query

Directly launches queries on an SQL database to extract targeted information.

PreviousCSV FileNextWebsite

Last updated 3 months ago

Detailed Explanation

  1. Name:

    • This field allows you to assign a specific name to your SQL database connection, helping you identify it within your project.

    • Example: You might name it "Employee Database" if the SQL database contains employee-related information.

  2. URI:

    • This field is for specifying the database connection URI. The format typically follows these examples:

      • For MySQL: mysql://user:password@localhost:3306/mydb

      • For PostgreSQL: postgres://user:password@localhost:5432/mydb

    • Example: If your database is hosted on your local machine, you might enter:

      Copymysql://username:password@localhost:3306/mydatabase
  3. SQL Query:

    • This field allows you to specify the SQL query you want to execute. Only SELECT queries are supported in this connector.

    • Example: If you want to retrieve all records from a table named employees, you would enter:

      CopySELECT * FROM employees;
  4. Chunk Size:

    • This field specifies the number of tokens or characters in each chunk of data. The default value is set to 1024, but you can adjust it based on your needs. This can be particularly useful when dealing with large result sets.

    • Example: If you expect a large volume of data, you might set the chunk size to 512 for easier processing.

  5. Cost Information:

    • This section provides details about the cost associated with importing words from the specified SQL database query.

    • Example: If it states "Cost per words: 0.035 tokens" and "Remaining words: 1279900685 Words," this indicates how many tokens will be charged for each word processed and the total number of words remaining for processing.