Azavea.Open.DAO.SQLite.SQLiteDaLayer.SequenceExists C# (CSharp) Method

SequenceExists() public method

Returns whether a sequence with this name exists or not.
public SequenceExists ( string name ) : bool
name string Name of the sequence to check for.
return bool
        public override bool SequenceExists(string name)
        {
            int count = SqlConnectionUtilities.XSafeIntQuery(_connDesc,
                "SELECT COUNT(*) FROM sqlite_master where type = 'sequence' and name = '" +
                name + "'", null);
            return count == 0;
        }