github.com/acoshift/pgsql@v0.15.3/pgmodel/model.go (about) 1 package pgmodel 2 3 import ( 4 "github.com/acoshift/pgsql" 5 "github.com/acoshift/pgsql/pgstmt" 6 ) 7 8 // Scanner model 9 type Scanner interface { 10 Scan(scan pgsql.Scanner) error 11 } 12 13 // Selector model 14 type Selector interface { 15 Select(b pgstmt.SelectStatement) 16 Scanner 17 } 18 19 // Inserter model 20 type Inserter interface { 21 Insert(b pgstmt.InsertStatement) 22 } 23 24 // Updater model 25 type Updater interface { 26 Update(b pgstmt.UpdateStatement) 27 }