From 779be3bf520acc1bc9fbec7a4e1990597255fbee Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 12 May 2023 11:59:58 +0700 Subject: lib/sql: add type DmlKind The DmlKind define the kind for Data Manipulation Language. --- lib/sql/dml_kind.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/sql/dml_kind.go (limited to 'lib/sql') 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 . 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` +) -- cgit v1.3