Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lejeanbono/cypress-mysql
Cypress plugin to easily request MySQL database
https://github.com/lejeanbono/cypress-mysql
cypress cypress-plugin database e2e mysql testing-tools
Last synced: 3 months ago
JSON representation
Cypress plugin to easily request MySQL database
- Host: GitHub
- URL: https://github.com/lejeanbono/cypress-mysql
- Owner: LeJeanbono
- Created: 2022-01-28T23:47:57.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T00:32:57.000Z (4 months ago)
- Last Synced: 2024-09-16T02:09:21.833Z (4 months ago)
- Topics: cypress, cypress-plugin, database, e2e, mysql, testing-tools
- Language: TypeScript
- Homepage:
- Size: 503 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Cypress MySQL Plugin
![build](https://github.com/LeJeanbono/cypress-mysql/actions/workflows/ci.yml/badge.svg)
![cypress](https://img.shields.io/badge/Cypress-9.x-success)
![mysql](https://img.shields.io/badge/MySQL-5.7-blue)## Query
```javascript
cy.query('SELECT * FROM myTable').then(datas => {
// array object
})
``````javascript
cy.query('SELECT * FROM myTable').then(datas => {
// array MyObject
})
```## SELECT
```javascript
// SELECT * FROM myTable
cy.selectAll({ table: 'myTable' }).then(datas => {
// array object
})
``````javascript
// SELECT * FROM myTable
cy.selectAll({ table: 'myTable' }).then(datas => {
// array MyObject
})
```## CREATE
## DROP
## DELETE
## INSERT