Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create table or collection command, standalone dev environment #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
robinmollah wants to merge 3 commits into ariflogs:dev
base: dev
Choose a base branch
Loading
from robinmollah:dev

Conversation

@robinmollah
Copy link

@robinmollah robinmollah commented Oct 14, 2023

  1. Added docker-compose that deploys a mongodb server. Run
docker-compose up
  1. 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.

  1. Added support to create collection or table, added a sample code in the sample/index.js file.

ariflogs reacted with rocket emoji
Copy link
Owner

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.

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /