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: 6 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T18:34:11.000Z (9 months ago)
- Last Synced: 2024-10-24T21:04:07.406Z (9 months ago)
- Topics: cypress, cypress-plugin, database, e2e, mysql, testing-tools
- Language: TypeScript
- Homepage:
- Size: 509 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


## 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