Closed bugfolder closed 2 years ago
As promised in today's VUG you can assign this task to me. AltaGrade team will roll out all database-related features. But because of current workload, I think we will need couple weeks to get back to this. If someone would like to take a stab before that, then you are more than welcome.
Not all the database commands, but three following new commands have been introduced by the PR:
bee sql-drop
bee sql-dump
bee sql-cli
Can we please also add aliases using db-
instead of sql-
?
I also like db-import
(dbim
?) and db-export
(dbex
?) better, as mentioned in #113.
Closed https://github.com/backdrop-contrib/bee/issues/113 as a duplicate of this issue. That one just mentioned:
Lando has
db-import
anddb-export
commands. I'd like to add similar commands tobee
.
Adding my work-in-progress PR here (so I don't lose it).
The PR adds the following commands:
I figure these would be the most popular, especially considering 'sql' allows you to do lots of the other things (like creating or dropping databases, albeit not as succinctly). I'm not going to add 'sql-sync' (at least in the near future) as this would require a lot of other work in Bee to function.
Just tested with lando bee sql < backdrop-ready.sql
and it worked flawlessly. 👍
First time bee
user but it feels really clean and fresh! (Tested a few of my favourites without knowing if they'd work -- dl
en
etc -- and was pleasantly surprised). Good work.
Tested bee sql
and bee db-export ...
and both worked as advertised. 👍
Thanks guys, merged.
The drush SQL commands would also be really nice. Commands and their drush aliases are:
sql-query (sql:query), most especially; but also
sql-cli (sqlc, sql:cli) sql-connect (sql:connect) sql-create (sql:create) sql-drop (sql:drop) sql-dump (sql:dump) sql-sync