The word "action" as used in this chapter is to be construed, whenever it is necessary so to do, as including a special proceeding of a civil nature.