auto
  7   ˆl–ßi~” T¾R( 	ÅåÀ9p,©‹Fÿ‘äÇò 8à_j6Ÿ|Dn_çÄƒh¹ÃÇÆ      auto
  ?   ˆl–ß=¿J	•0–52 Y¸ÛWê˜´o�þ\Œ‹7+m•·ä�£ ?ŸÅƒ¢kÄ_ˆI|¥�+y,ÉÈ ¼    /* GIO - GLib Input, Output and Streaming Library
 *
 * Copyright (C) 2006-2007 Red Hat, Inc.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
 *
 * Author: Alexander Larsson <alexl@redhat.com>
 */

#ifndef __G_IO_ERROR_H__
#define __G_IO_ERROR_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#include <glib.h>
#include <gio/gioenums.h>
#include <glib/gfileutils.h>

G_BEGIN_DECLS

/**
 * G_IO_ERROR:
 *
 * Error domain for GIO. Errors in this domain will be from the #GIOErrorEnum enumeration.
 * See #GError for more information on error domains.
 **/
#define G_IO_ERROR g_io_error_quark()

GLIB_AVAILABLE_IN_ALL
GQuark       g_io_error_quark      (void);
GLIB_AVAILABLE_IN_ALL
GIOErrorEnum g_io_error_from_errno (gint err_no);
GLIB_AVAILABLE_IN_2_74
GIOErrorEnum g_io_error_from_file_error (GFileError file_error);

#ifdef G_OS_WIN32
GLIB_AVAILABLE_IN_ALL
GIOErrorEnum g_io_error_from_win32_error (gint error_code);
#endif

G_END_DECLS

#endif /* __G_IO_ERROR_H__ */
      ˆÀ‘äÇò 8à_j6ŸŽXÄ×óÆƒh¹ÅÉÈ      auto
  ?   ˆl–äY>”ªn-j‚fà�¸Ð”Å£�þHëk6W‚Q¼Gßuà?Çƒd/?Æ_ˆI|¥�+V[(ËÊ u    package DBIx::DBSchema::DBD::Sybase;

use strict;
use vars qw($VERSION @ISA %typemap);
use DBIx::DBSchema::DBD;

$VERSION = '0.04';
@ISA = qw(DBIx::DBSchema::DBD);

%typemap = (
#  'empty' => 'empty'
);

=head1 NAME

DBIx::DBSchema::DBD::Sybase - Sybase database driver for DBIx::DBSchema

=head1 SYNOPSIS

use DBI;
use DBIx::DBSchema;

$dbh = DBI->connect('dbi:Sybase:dbname=database', 'user', 'pass');
$schema = new_native DBIx::DBSchema $dbh;

=head1 DESCRIPTION

This module implements a Sybase driver for DBIx::DBSchema. 

=cut

sub columns {
  my($proto, $dbh, $table) = @_;

  my $sth = $dbh->prepare("sp_columns \@table_name=$table") 
  or die $dbh->errstr;

  $sth->execute or die $sth->errstr;
  my @cols = map {
    [
      $_->{'column_name'},
      $_->{'type_name'},
      ($_->{'nullable'} ? 1 : ''),
      $_->{'length'},
      '', #default
      ''  #local
    ]
  } @{ $sth->fetchall_arrayref({}) };
  $sth->finish;

  @cols;
}

sub primary_key {
    return("StubbedPrimaryKey");
}


sub unique {
  my($proto, $dbh, $table) = @_;
  my $gratuitous = { map { $_ => [ $proto->_index_fields($dbh, $table, $_ ) ] }
      grep { $proto->_is_unique($dbh, $_ ) }
        $proto->_all_indices($dbh, $table)
  };
}

sub index {
  my($proto, $dbh, $table) = @_;
  my $gratuitous = { map { $_ => [ $proto->_index_fields($dbh, $table, $_ ) ] }
      grep { ! $proto->_is_unique($dbh, $_ ) }
        $proto->_all_indices($dbh, $table)
  };
}

sub _all_indices {
  my($proto, $dbh, $table) = @_;

  my $sth = $dbh->prepare_cached(<<END) or die $dbh->errstr;
    SELECT name
    FROM sysindexes
    WHERE id = object_id('$table') and indid between 1 and 254
END
  $sth->execute or die $sth->errstr;
  my @indices = map { $_->[0] } @{ $sth->fetchall_arrayref() };
  $sth->finish;
  $sth = undef;
  @indices;
}

sub _index_fields {
  my($proto, $dbh, $table, $index) = @_;

  my @keys;

  my ($indid) = $dbh->selectrow_array("select indid from sysindexes where id = object_id('$table') and name = '$index'");
  for (1..30) {
    push @keys, $dbh->selectrow_array("select i