[tarantool-patches] Re: [PATCH v2 2/2] sql: use 'view' opts from space
Konstantin Osipov
kostja at tarantool.org
Tue Mar 27 09:04:43 MSK 2018
* 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
More information about the Tarantool-patches
mailing list