func (t *Teacher) Create() {
	// Verify that this teacher isn't in the database already.
	if !t.Exists() {
		// This teacher (teacher with this short) is not in the database
		// already, so it is inserted now.
		stmt := `INSERT INTO teachers(short, name, sex) VALUES (?, ?, ?)`
		db.Exec(stmt, t.Short, t.Name, t.Sex)
	}
}
// Create inserts this teacher into the database. This only happens
// if there isn't an entry with this teacher's short already. Otherwise
// nothing happens.
Create inserts this teacher into the database. This only happens
if there isn't an entry with this teacher's short already. Otherwise
nothing happens.
// Create inserts this teacher into the database . This only happens // if there isn ' t an entry with this teacher ' s short already . Otherwise // nothing happens .
func (t *Teacher) Create() {
	if !t.Exists() {
		stmt := `INSERT INTO teachers(short, name, sex) VALUES (?, ?, ?)`
		db.Exec(stmt, t.Short, t.Name, t.Sex)
	}
}
func ( t * Teacher ) Create ( ) { if ! t . Exists ( ) { stmt := `INSERT INTO teachers(short, name, sex) VALUES (?, ?, ?)` db . Exec ( stmt , t . Short , t . Name , t . Sex ) } }
Create inserts this teacher into the database.
Create inserts this teacher into the database .
// Verify that this teacher isn't in the database already. // This teacher (teacher with this short) is not in the database // already, so it is inserted now.