diff options
| author | Shulhan <ms@kilabit.info> | 2023-05-12 11:59:58 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-05-12 11:59:58 +0700 |
| commit | 779be3bf520acc1bc9fbec7a4e1990597255fbee (patch) | |
| tree | 0dccc903b74a8779792cd1d23af2ba4ea9525158 /lib/sql | |
| parent | a61b44cc5ac1da71f50f4ae88d9d589d7f28cfb6 (diff) | |
| download | pakakeh.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.go | 16 |
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` +) |
