Skip to content

OpenElectronicsLab/sql-in-mariadb-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sql-in-mariadb-container

	run sql commands and/or load sql files inside of a container

USAGE:

	sql-in-mariadb-container ./dump-20240401.sql "SELECT COUNT(*) FROM t1"

OPTIONS:
	-b, --base-dir=PATH		[DEFAULT=./data]
	-m, --mariadb-version=VERSION	[DEFAULT=10.11]
	-d, --db-schema-name=NAME	[DEFAULT=test]
	-p, --port=PORT			[DEFAULT=(some free port)]
	-s, --sql=FILE_OR_COMMAND	Alternative to positional arguments
	-r, --remain-running		To access the container afterwards
	-v, --verbose
	-V, --version			print the version and exit
	-h, --help			print this message and exit

License
-------
GNU General Public License (GPL), version 3 or later.
See COPYING or https://www.gnu.org/licenses/gpl-3.0.txt for details.

Copyright (C) 2021-2024 Stichting Open Electronics Lab

About

run sql commands and/or load sql files inside of a container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages