aboutsummaryrefslogtreecommitdiff
path: root/lib/sql
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-10 23:11:40 +0700
committerShulhan <ms@kilabit.info>2023-09-11 02:26:33 +0700
commit19abc9b968eef3a2ded89009dfb647f927729b16 (patch)
tree64f09679352801977cf6373e13e66125b873c13c /lib/sql
parentd22b0b4af8200430ab7cdfd85ff8e702b3e06fcd (diff)
downloadpakakeh.go-19abc9b968eef3a2ded89009dfb647f927729b16.tar.xz
lib/sql: add missing comment to exported constants
Diffstat (limited to 'lib/sql')
-rw-r--r--lib/sql/sql.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sql/sql.go b/lib/sql/sql.go
index 3b3adfee..bac782c5 100644
--- a/lib/sql/sql.go
+++ b/lib/sql/sql.go
@@ -6,9 +6,12 @@
// provide common functionality across DBMS.
package sql
+// List of known driver name for database connection.
const (
DriverNameMysql = "mysql"
DriverNamePostgres = "postgres"
-
- DefaultPlaceHolder = "?"
)
+
+// DefaultPlaceHolder define default placeholder for DML, which is
+// placeholder for MySQL.
+const DefaultPlaceHolder = "?"