github.com/marinho/drone@v0.2.1-0.20140504195434-d3ba962e89a7/pkg/database/migrate/postgresql.go (about) 1 package migrate 2 3 import ( 4 "database/sql" 5 "errors" 6 ) 7 8 type postgresqlDriver struct { 9 Tx *sql.Tx 10 } 11 12 func PostgreSQL(tx *sql.Tx) *MigrationDriver { 13 return &MigrationDriver{ 14 Tx: tx, 15 Operation: &postgresqlDriver{Tx: tx}, 16 } 17 } 18 19 func (p *postgresqlDriver) CreateTable(tableName string, args []string) (sql.Result, error) { 20 return nil, errors.New("not implemented yet") 21 } 22 23 func (p *postgresqlDriver) RenameTable(tableName, newName string) (sql.Result, error) { 24 return nil, errors.New("not implemented yet") 25 } 26 27 func (p *postgresqlDriver) DropTable(tableName string) (sql.Result, error) { 28 return nil, errors.New("not implemented yet") 29 } 30 31 func (p *postgresqlDriver) AddColumn(tableName, columnSpec string) (sql.Result, error) { 32 return nil, errors.New("not implemented yet") 33 } 34 35 func (p *postgresqlDriver) ChangeColumn(tableName, columnName, newSpecs string) (sql.Result, error) { 36 return nil, errors.New("not implemented yet") 37 } 38 39 func (p *postgresqlDriver) DropColumns(tableName string, columnsToDrop ...string) (sql.Result, error) { 40 return nil, errors.New("not implemented yet") 41 } 42 43 func (p *postgresqlDriver) RenameColumns(tableName string, columnChanges map[string]string) (sql.Result, error) { 44 return nil, errors.New("not implemented yet") 45 } 46 47 func (p *postgresqlDriver) AddIndex(tableName string, columns []string, flags ...string) (sql.Result, error) { 48 return nil, errors.New("not implemented yet") 49 } 50 51 func (p *postgresqlDriver) DropIndex(tableName string, columns []string) (sql.Result, error) { 52 return nil, errors.New("not implemented yet") 53 }