code: func CreateRoutingProfile(db sqlx.Execer, rp *RoutingProfile) error {
  	now := time.Now()
  
  	if rp.ID == uuid.Nil {
  		var err error
  		rp.ID, err = uuid.NewV4()
  		if err != nil {
  			return errors.Wrap(err, "new uuid v4 error")
  		}
  	}
  
  	rp.CreatedAt = now
  	rp.UpdatedAt = now
  
  	_, err := db.Exec(`
  		insert into routing_profile (
  			created_at,
  			updated_at,
  
  			routing_profile_id,
  			as_id,
  			ca_cert,
  			tls_cert,
  			tls_key
  		) values ($1, $2, $3, $4, $5, $6, $7)`,
  		rp.CreatedAt,
  		rp.UpdatedAt,
  		rp.ID,
  		rp.ASID,
  		rp.CACert,
  		rp.TLSCert,
  		rp.TLSKey,
  	)
  	if err != nil {
  		return handlePSQLError(err, "insert error")
  	}
  
  	log.WithFields(log.Fields{
  		"id": rp.ID,
  	}).Info("routing-profile created")
  
  	return nil
  }
docs: // CreateRoutingProfile creates the given routing-profile.