Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [kostja@tarantool.org: Re: [PATCH v2 2/2] sql: use 'view' opts from space]
@ 2018-03-27  6:17 Konstantin Osipov
  0 siblings, 0 replies; only message in thread
From: Konstantin Osipov @ 2018-03-27  6:17 UTC (permalink / raw)
  To: tarantool-patches

HI,

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

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

* Nikita Pettik <korablev@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-27  6:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27  6:17 [tarantool-patches] [kostja@tarantool.org: Re: [PATCH v2 2/2] sql: use 'view' opts from space] Konstantin Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox