IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 26, 2007, 1:47:05 PM (19 years ago)
Author:
jhoblitt
Message:

add Nebulous::Server->find_keys()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r13041 r13047  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: SQL.pm,v 1.26 2007-04-26 20:27:33 jhoblitt Exp $
     3# $Id: SQL.pm,v 1.27 2007-04-26 23:45:03 jhoblitt Exp $
    44
    55package Nebulous::Server::SQL;
     
    116116    get_storage_volume_byname   => qq{
    117117        SELECT
    118             mountpoint,
     118            path as volume,
    119119            total - used as free
    120         FROM volume
    121         JOIN mount      -- join limits us to currently mounted volumes
    122             ON volume.path = mount.mountpoint
     120        FROM mountedvol
    123121        WHERE
    124122            used / total < ?
     
    129127    get_storage_volume          => qq{
    130128        SELECT
    131             mountpoint,
     129            path as volume,
    132130            total - used as free
    133         FROM volume
    134         JOIN mount      -- join limits us to currently mounted volumes
    135             ON volume.path = mount.mountpoint
     131        FROM mountedvol
    136132        WHERE
    137133            used / total < ?
     
    152148        FROM volume
    153149        WHERE name = ?
     150    },
     151    find_objects => qq{
     152        SELECT *
     153        FROM storage_object
     154        WHERE ext_id REGEXP ?
    154155    },
    155156);
     
    315316    ) ENGINE=MEMORY;
    316317
    317     -- iterator over the volume table finding the coresponding entry in the
     318    -- iterate over the volume table finding the coresponding entry in the
    318319    -- mount table and inserting union of the volume & mount row into the
    319320    -- mountedvol table
Note: See TracChangeset for help on using the changeset viewer.