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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-16T20:41:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T06:32:32.710Z (over 1 year ago)
- Topics: database-connector, ionic, mongo, mongodb, node, nodejs, query-builder, react, reactjs
- Language: JavaScript
- Homepage:
- Size: 1.1 MB
- Stars: 1
- Watchers: 2
- 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

#### Collections management

## Strucutre

## 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 TAB.PK=@OBJECT.PK
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