https://github.com/aereal/go-dsn
format go-sql-driver's config as DSN (Data Source Name)
https://github.com/aereal/go-dsn
sql-driver typescript
Last synced: 11 months ago
JSON representation
format go-sql-driver's config as DSN (Data Source Name)
- Host: GitHub
- URL: https://github.com/aereal/go-dsn
- Owner: aereal
- Created: 2019-03-13T10:12:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T13:31:57.000Z (over 4 years ago)
- Last Synced: 2025-03-23T18:58:19.643Z (11 months ago)
- Topics: sql-driver, typescript
- Language: TypeScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-dsn
## Synopsis
```typescript
import { formatDSN } from "@aereal/go-dsn"
formatDSN({
dbName: "test-db",
passwd: "mypasswd",
user: "root",
})
// => "root:mypasswd@/test-db"
```
## See also
https://github.com/go-sql-driver/mysql#dsn-data-source-name