https://github.com/go-helium/upper-db
Database module based on upper.io/db.v3
https://github.com/go-helium/upper-db
database helium module modules-structure mongodb mssql mysql postgresql
Last synced: 3 months ago
JSON representation
Database module based on upper.io/db.v3
- Host: GitHub
- URL: https://github.com/go-helium/upper-db
- Owner: go-helium
- License: mit
- Created: 2019-04-27T10:12:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T22:10:54.000Z (about 7 years ago)
- Last Synced: 2025-02-17T00:24:21.458Z (over 1 year ago)
- Topics: database, helium, module, modules-structure, mongodb, mssql, mysql, postgresql
- Language: Go
- Homepage: https://github.com/im-kulikov/helium
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# upper.io/db.v3 Module for Helium
## Default modules
- MySQL - to connection `database.mysql`
- PG - to connection `database.postgres`
## Example configuration
```yaml
database:
mysql:
adapter: mysql
hostname: 127.0.0.1:3306
database: mysql
username: root
password:
debug: true
options:
parseTime: true
postgres:
adapter: postgres
hostname: 127.0.0.1:5432
database: postgres
username: postgres
password: postgres
debug: true
options:
sslmode: disable
mssql:
adapter: mssql
hostname: 127.0.0.1:1433
database: master
username: test
password: test
debug: true
mongo:
adapter: mongo
hostname: 127.0.0.1:27017
database: master
username: test
password: test
debug: true
```