You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: friendly_uuid.rb
    path of file: ./repos/friendly_uuid/lib
    
    the code of the file until where you have to start completion: module FriendlyUUID
  def self.extended(model_class)
    model_class.class_eval do
      include Base
      extend Class
    end
  
    
    def substr_query
      case adapter
      when "mysql2"
        raise ValueError("Sorry, FriendlyUUID does not support MySQL")
      when "postgresql"
        "LEFT(#{self.table_name}.id::text, ?) = ?"
      when "sqlite3"
        "SUBSTR(#{self.table_name}.id, 0, ?) = ?"
      else
        raise ValueError("Unknown database type; FriendlyUUID cannot support it")
      end
    end