thorsager / docker-quick-mysql Goto Github PK
View Code? Open in Web Editor NEWQuick and Dirty MySql for development and testing
Quick and Dirty MySql for development and testing
Perhaps adding https://gist.github.com/micsor-norlys/aa05ec220b2c3cc1949aeec6a80c951f or something like it, would make some sense.
To help starting/stopping.. a mysql-server, in some default config.
The ability to drop tables in some databases, as part of the truncate-all
process
Adding some simple, easy and quick way of truncating all tables in all databases, perhaps with the possibility to exclude specific table-names, would be nice.
This could be used ex. when resetting a lab or test environment.
The SQL to support such a function could look something like this
SET @DATABASES='devel';
SET @IGNORES='flyway_schema_history';
SET FOREIGN_KEY_CHECKS=0;
SELECT CONCAT('TRUNCATE TABLE `',`table_schema`,'.',`table_name`,'`;') from information_schema.TABLES WHERE TABLE_SCHEMA IN (@DATABASES) AND `TABLE_NAME` NOT IN (@IGNORES);
SELECT @TQ:=CONCAT('TRUNCATE TABLE `',`table_schema`,'.',`table_name`,'`;') from information_schema.TABLES WHERE TABLE_SCHEMA IN (@DATABASES) AND `TABLE_NAME` NOT IN (@IGNORES);
PREPARE TS FROM @TQ;
EXECUTE TS;
DEALLOCATE PREPARE TS;
SET FOREIGN_KEY_CHECKS=1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.