package
0.1.5
Repository: https://github.com/rest-go/rest.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
Open connects to database by specify database url and ping it.
Rebind a query from the default driverName(mysql) to the target driverName.

# Constants

DefaultTimeout for all database operations.
Bindvar types supported by Rebind, BindMap and BindStruct.
MySQL errors https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html.
No description provided by the author
PG errors https://www.postgresql.org/docs/current/errcodes-appendix.html.
No description provided by the author
No description provided by the author
Bindvar types supported by Rebind, BindMap and BindStruct.
No description provided by the author
SQLite errors https://www.sqlite.org/rescode.html.
No description provided by the author
No description provided by the author
Bindvar types supported by Rebind, BindMap and BindStruct.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
TODO: benchmark performance of regexp match VS map access the code below could be simplified by using regexp, but declare it in a map should result in better performance in theory.

# Structs

Column represents a table column with name and type.
DB is a wrapper of the golang database/sql DB struct with a DriverName to handle generic logic against different SQL database.
Error converts database error to http code.
No description provided by the author
No description provided by the author
No description provided by the author
e.g.
No description provided by the author
Table represents a table in database with name and columns.
No description provided by the author
e.g.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author