lib/thingfish/metastore/pggraph.rb
changeset 18 e18bc5021028
parent 16 87b0a389b804
child 20 e2e96d97b77c
equal deleted inserted replaced
17:29848143f305 18:e18bc5021028
    22 	# Load Sequel extensions/plugins
    22 	# Load Sequel extensions/plugins
    23 	Sequel.extension :migration
    23 	Sequel.extension :migration
    24 
    24 
    25 
    25 
    26 	# Package version
    26 	# Package version
    27 	VERSION = '0.3.1'
    27 	VERSION = '0.4.0'
    28 
    28 
    29 	# Version control revision
    29 	# Version control revision
    30 	REVISION = %q$Revision: 686fbfe638bd $
    30 	REVISION = %q$Revision: 686fbfe638bd $
    31 
    31 
    32 	# The data directory that contains migration files.
    32 	# The data directory that contains migration files.
   292 		end
   292 		end
   293 
   293 
   294 		return ds
   294 		return ds
   295 	end
   295 	end
   296 
   296 
       
   297 
       
   298 	# Register a hook to make the database connection fork-safe.
       
   299 	Strelka.before_fork do
       
   300 		self.db&.disconnect
       
   301 	end
       
   302 
   297 end # class Thingfish::Metastore::PgGraph
   303 end # class Thingfish::Metastore::PgGraph
   298 
   304