0.1.0 ⢠Published 2 years ago
mysql-emulator v0.1.0
MySQL Emulator
The package emulates a MySQL database from within Node.js, specifically designed for e2e testing.
Try it out at the playground.
ā The library is still under active development. It means that some features are not working and may be considered as invalid syntax or ignored.
ā Known limitations:
- No right join
- Default order might differ (always use
ORDER BYwhen the order matters) - Column names might differ, f.e.
count(u.id)=>COUNT(`u`.`id`)(aliases fix it) - No timezone support
š TODO
ALTERstatement (in most casesALTEReven is not needed,synchronizewill do all the work)- Foreign key constraints
- Fill
INFORMATION_SCHEMAtables DELETE ORDER BY field LIMIT numberUPDATE ORDER BY field LIMIT numberSELECT GROUP BY position/aliasSELECT ORDER BY position/alias- Implement the most used functions
Usage
Just start from:
npm install mysql-emulatorThen it's ready to go:
import { query } from 'mysql-emulator';
await query(...);Examples
0.1.0
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.10
3 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.9
3 years ago
0.0.16
2 years ago
0.0.8
3 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago