Create table or collection command, standalone dev environment
- Added docker-compose that deploys a mongodb server. Run
docker-compose up
- Added a sample file that can be run using:
node sample/index.js
It must run after a npm run dev has started and running.
- Added support to create collection or table, added a sample code in the sample/index.js file.
Thanks a lot for the PR bro 🙏
Totally on board with the samples and the docker-compose.yml file. can you please include them in the .npmignore?
As for the create table, don't you think it will be better to focus on the SELECT query and make it decent first? Coz adding support for a new operation will come with a lot of new options that we might now be able to support in the near future.
Hi, the reason for the create command is to create this repository running from a blank database. To make the repository very portable after cloning the repository someone can run the sample file and create a table, and seeds with some data, then can do select and other operations. Currently, if I want to use this program, to make an experimental environment I will need to create a table and drop some data manually.