An open API service indexing awesome lists of open source software.

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)

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