summaryrefslogtreecommitdiff
path: root/model/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/object.go')
-rw-r--r--model/object.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/model/object.go b/model/object.go
new file mode 100644
index 0000000..63ef419
--- /dev/null
+++ b/model/object.go
@@ -0,0 +1,12 @@
+package model
+
+import (
+ "database/sql"
+)
+
+type Object interface {
+ Create(tx *sql.Tx) error
+ Read(tx *sql.Tx) error
+ Update(tx *sql.Tx) error
+ Delete(tx *sql.Tx) error
+}