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: database.rb
    path of file: ./repos/stackneveroverflow/vendor/bundle/ruby/2.3.0/gems/sqlite3-1.3.13/lib/sqlite3
    
    the code of the file until where you have to start completion: require 'sqlite3/con
    
    def prepare sql
      stmt = SQLite3::Statement.new( self, sql )
      return stmt unless block_given?

      begin
        yield stmt
      ensure
        stmt.close unless stmt.closed?
      end