Module: Upknit::ConnectionExtension::PostgreSQL

Defined in:
lib/upknit/connection_extension/postgresql.rb

Instance Method Summary collapse

Instance Method Details

#enable_uuidvoid

This method returns an undefined value.

Enables a extension which adds UUID function to the system.



13
14
15
# File 'lib/upknit/connection_extension/postgresql.rb', line 13

def enable_uuid
  enable_extension(uuid_extension)
end

#uuid_extensionString

Returns the name of UUID extension which should be used in current connection.

Returns:

  • (String)

    Name of the extension



19
20
21
# File 'lib/upknit/connection_extension/postgresql.rb', line 19

def uuid_extension
  (UUID_EXTENSIONS & available_extensions).first
end