Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH 0/2] rework SQL 'DROP' routine
@ 2018-04-03 16:14 Nikita Pettik
  2018-04-03 16:14 ` [tarantool-patches] [PATCH 1/2] sql: remove obsolete SQLite routine Nikita Pettik
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Nikita Pettik @ 2018-04-03 16:14 UTC (permalink / raw)
  To: tarantool-patches; +Cc: v.shpilevoy, Nikita Pettik

Branch: https://github.com/tarantool/tarantool/tree/np/gh-3222-rework-drop
Issue: https://github.com/tarantool/tarantool/issues/3222

This small patch-set implements part of #3222 issue: rewrite functions
implementing drop table and drop index in order to avoid using
struct Table and its lookup in SQLite data-dictionary.
However, as far as currently triggers aren't part of Tarantool's spaces,
it is still required to use struct Table to drop them:
triggers are held in _trigger space, which format is: ['name', 'sql'],
i.e. there is no field for name of parent table. Hence, we are able
to point out table's triggers only via accessing struct Table.

Both patches are mainly about refactoring.
First patch removes useless wrappers, obsolete SQLite specific functions
and struct fields.
Second one replaces usages of struct Table with struct space in drop
routine, fixes codestyle, provides doxygen style comments.

Nikita Pettik (2):
  sql: remove obsolete SQLite routine
  sql: rework 'DROP INDEX' and 'DROP TABLE' handling

 src/box/sql/alter.c     |  13 +-
 src/box/sql/analyze.c   |  25 ++-
 src/box/sql/build.c     | 442 ++++++++++++++++++------------------------------
 src/box/sql/delete.c    |   5 +-
 src/box/sql/expr.c      |   9 +-
 src/box/sql/fkey.c      |   3 +-
 src/box/sql/insert.c    |  10 +-
 src/box/sql/parse.c     |   6 +-
 src/box/sql/parse.y     |   6 +-
 src/box/sql/pragma.c    |  18 +-
 src/box/sql/prepare.c   |  29 ----
 src/box/sql/select.c    |   4 +-
 src/box/sql/sqliteInt.h |  17 +-
 src/box/sql/trigger.c   |   7 +-
 src/box/sql/update.c    |   2 +-
 src/box/sql/vdbe.c      |   1 -
 src/box/sql/vdbeInt.h   |   1 -
 src/box/sql/vdbeaux.c   |   1 -
 src/box/sql/where.c     |   2 -
 src/box/sql/wherecode.c |   7 +-
 20 files changed, 217 insertions(+), 391 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-04-05 14:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 16:14 [tarantool-patches] [PATCH 0/2] rework SQL 'DROP' routine Nikita Pettik
2018-04-03 16:14 ` [tarantool-patches] [PATCH 1/2] sql: remove obsolete SQLite routine Nikita Pettik
2018-04-03 17:54   ` [tarantool-patches] " Vladislav Shpilevoy
2018-04-04 18:09     ` n.pettik
2018-04-05 11:16       ` Vladislav Shpilevoy
2018-04-05 12:13         ` n.pettik
2018-04-05 13:28           ` Vladislav Shpilevoy
2018-04-03 16:14 ` [tarantool-patches] [PATCH 2/2] sql: rework 'DROP INDEX' and 'DROP TABLE' handling Nikita Pettik
2018-04-03 18:27   ` [tarantool-patches] " Vladislav Shpilevoy
2018-04-04 18:11     ` n.pettik
2018-04-05 11:20       ` Vladislav Shpilevoy
2018-04-05 14:12 ` [tarantool-patches] Re: [PATCH 0/2] rework SQL 'DROP' routine Kirill Yukhin

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