pub fn create_space(
    name: &str,
    opts: &SpaceCreateOptions
) -> Result<Space, Error>
Expand description

Create a space. (for details see box.schema.space.create()).

  • name - name of space, which should conform to the rules for object names.
  • opts - see SpaceCreateOptions struct.

Returns a new space.

NOTE: This function will initiate a transaction if there’s isn’t an active one, and if there is the active transaction may be aborted in case of an error. This shouldn’t be a problem if you always consider this function returning an error to be worthy of a transcation roll back, which you should.