+ #
+ # Produce a list of DAViCal users.
+ #
+ # This method remains public for use in testing.
+ #
+ # @return [Array<User>] an array of {User} objects, one for each
+ # user found in the DAViCal database.
+ #
+ def list_users()
+ usernames = []
+
+ connection = PGconn.connect(@db_host, @db_port, @db_opts, @db_tty,
+ @db_name, @db_user, @db_pass)
+
+ # User #1 is the super-user, and not tied to an email address.
+ sql_query = 'SELECT username FROM usr WHERE user_no > 1'