[tarantool-patches] [kostja at tarantool.org: Re: [PATCH v2 2/2] sql: use 'view' opts from space]

Konstantin Osipov kostja at tarantool.org
Tue Mar 27 09:17:11 MSK 2018


HI,

----- Forwarded message from Konstantin Osipov <kostja at tarantool.org> -----

Date: Tue, 27 Mar 2018 09:04:43 +0300
From: Konstantin Osipov <kostja at tarantool.org>
To: tarantool-patches at freelists.org
Cc: tarantool-patches at freelist.org, Nikita Pettik <korablev at tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v2 2/2] sql: use 'view' opts from space

* Nikita Pettik <korablev at tarantool.org> [18/03/27 02:06]:
>  
> +/**
> + * Return true if space which corresponds to
> + * given table has view option.
> + */
> +bool
> +space_is_view(Table *table)
> +{
> +	assert(table != NULL);
> +	uint32_t space_id = SQLITE_PAGENO_TO_SPACEID(table->tnum);
> +	struct space *space = space_by_id(space_id);
> +	assert(space != NULL);
> +	return space->def->opts.view;
> +}

I assume this implementation will change in a few weeks.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.org - www.twitter.com/kostja_osipov


----- End forwarded message -----

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.org - www.twitter.com/kostja_osipov




More information about the Tarantool-patches mailing list