atest-ext-store-orm

command module
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

README

Codacy Badge

atest-ext-store-orm

ORM database Store Extension for API Testing

This project provides an ORM-based database store extension for API testing, simplifying data storage and retrieval operations. It supports various databases including SQLite, MySQL, PostgreSQL, TDengine, and others, making it versatile for different testing environments.

Features

  • Simplified database operations using ORM.
  • Integration with API testing frameworks.
  • Support for multiple databases (SQLite, MySQL, PostgreSQL, TDengine, etc.).

Usage

To use this extension in your API testing project, follow these steps:

  1. Install the necessary dependencies.
  2. Configure the database connection settings.
  3. Integrate the extension into your API tests.

Quick MySQL Setup with TiUP Playground

You can quickly set up a MySQL-compatible database using TiUP Playground:

  1. Install TiUP (if not already installed):

    curl --proto '=https' --tlsv1.2 -sSf https://tiup.io/install.sh | sh
    source ~/.profile
    
  2. Start a TiDB (MySQL-compatible) cluster:

    tiup playground
    

    This will launch a local TiDB cluster with default settings.

  3. Connect to TiDB using the MySQL client:

    mysql -h 127.0.0.1 -P 4000 -u root
    

    Now you can create databases, tables, and run SQL queries as you would with MySQL.

For more details, see the TiUP Playground documentation.

Q&A

Run the command apt-get install build-essential libsqlite3-dev if you meet the sqlite errors.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL