Loading 00-tables.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ CREATE EXTENSION IF NOT EXISTS ltree; Loading 01-paths-indexes.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- Generates the path from parent_path and id CREATE OR REPLACE FUNCTION path(parent_path ltree, id bigint) RETURNS ltree AS $func$ Loading 02-views.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- View that maps node_id to os_path (relative path of file on disk) CREATE VIEW node_os_path AS Loading 03-other-functions.sql +5 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- This function returns an array adding some elements and removing others -- It is used to update recursively groupread and groupwrite properties Loading LICENSE +658 −7 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
00-tables.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ CREATE EXTENSION IF NOT EXISTS ltree; Loading
01-paths-indexes.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- Generates the path from parent_path and id CREATE OR REPLACE FUNCTION path(parent_path ltree, id bigint) RETURNS ltree AS $func$ Loading
02-views.sql +6 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- View that maps node_id to os_path (relative path of file on disk) CREATE VIEW node_os_path AS Loading
03-other-functions.sql +5 −0 Original line number Diff line number Diff line /* * This file is part of vospace-file-catalog * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ -- This function returns an array adding some elements and removing others -- It is used to update recursively groupread and groupwrite properties Loading