Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertomorini/byngo
A MongoDB client executor
https://github.com/albertomorini/byngo
database-connector ionic mongo mongodb node nodejs query-builder react reactjs
Last synced: 2 months ago
JSON representation
A MongoDB client executor
- Host: GitHub
- URL: https://github.com/albertomorini/byngo
- Owner: albertomorini
- Created: 2023-08-07T21:09:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T20:41:32.000Z (over 1 year ago)
- Last Synced: 2023-09-17T06:12:45.706Z (over 1 year ago)
- Topics: database-connector, ionic, mongo, mongodb, node, nodejs, query-builder, react, reactjs
- Language: JavaScript
- Homepage:
- Size: 1.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# Byngo
Is a web client-server executor for Mongo DB.
Like a SQL Management Studio but for Mongo instead of SQL-Server.
## IDEA
To create a GUI client for MongoDB, which is extendible and can easily connect to different collection/servers.
The project have to cover the CRUD operation on the [DATA](#CRUD-ON-DATA) of a collection, and CRUD on the [COLLECTION](#CRUD-ON-COLLECTIONS).
_Work in progress btw_
UI interface be like:
#### Query section
![UI](./docs/UI.png)
#### Collections management
![UI](./docs/UI_Collection.png)
## Strucutre
![struct](./docs/struct.jpeg)## CRUD
### CRUD ON DATA
#### READ (SELECT)
We have to replicate these queries.
`SELECT * FROM TABLE` || `SELECT TOP 100 FROM TABLE` || `SELECT @PAR FROM TABLE WHERE @PAR2=@VALUE`
> Group by, order by --> After we get the data#### CREATE (INSERT)
`INSERT INTO TABLE VALUES(@OBJECT)` = INSERT INTO COLLECTION <- @OBJECT#### UPDATE (UPDATE)
```SQL
IF(@OBJECT.PK EXISTS)
UPDATE TABLE SET @OBJECT=@NEWOBJECT WHERE [email protected]
ELSE
INSERT INTO TABLE VALUES(@OBJECT)
```#### UPDATE
`UPDATE TABLE SET @OBJECT=@NEWOBJECT WHERE ID=@ID`#### DELETE
- MANY --> `DELETE FROM TABLE WHERE ID=@ID`
- ALL/FLUSH --> `DELETE FROM TABLE`### CRUD ON COLLECTIONS
- CREATE
- DELETE