aboutsummaryrefslogtreecommitdiff
path: root/lib/sql
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-05-12 11:59:58 +0700
committerShulhan <ms@kilabit.info>2023-05-12 11:59:58 +0700
commit779be3bf520acc1bc9fbec7a4e1990597255fbee (patch)
tree0dccc903b74a8779792cd1d23af2ba4ea9525158 /lib/sql
parenta61b44cc5ac1da71f50f4ae88d9d589d7f28cfb6 (diff)
downloadpakakeh.go-779be3bf520acc1bc9fbec7a4e1990597255fbee.tar.xz
lib/sql: add type DmlKind
The DmlKind define the kind for Data Manipulation Language.
Diffstat (limited to 'lib/sql')
-rw-r--r--lib/sql/dml_kind.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/sql/dml_kind.go b/lib/sql/dml_kind.go
new file mode 100644
index 00000000..08382cfe
--- /dev/null
+++ b/lib/sql/dml_kind.go
@@ -0,0 +1,16 @@
+// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package sql
+
+// DmlKind define the kind for Data Manipulation Language (DML).
+type DmlKind string
+
+// List of valid DmlKind.
+const (
+ DmlKindDelete DmlKind = `DELETE`
+ DmlKindInsert DmlKind = `INSERT`
+ DmlKindSelect DmlKind = `SELECT`
+ DmlKindUpdate DmlKind = `UPDATE`
+)