패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.1

dart_mssql

Dart용 고성능 Microsoft SQL Server 드라이버 (32 및 64비트)

30일 다운로드
126
좋아요
32
Pub 점수
40

패키지 설치

flutter pub add dart_mssql

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

dart_mssql는 Dart용 고성능 Microsoft SQL Server 드라이버로, 32비트 및 64비트 시스템을 모두 지원합니다. SQL Server 데이터베이스와의 강력한 상호작용이 필요한 Dart 애플리케이션에 원활한 데이터베이스 연결을 제공합니다. 효율성과 신뢰성을 중시하여 서버 또는 데스크톱 환경에서 안전하고 빠른 데이터 작업을 가능하게 합니다. 간단한 API 사용을 통해 Flutter 및 기타 Dart 프로젝트와 원활하게 통합됩니다. 오픈소스 성격으로 커뮤니티 기여와 투명성이 보장됩니다. SQL Server를 백엔드로 사용하는 애플리케이션 개발자에게 이상적입니다.

사용 사례

  • Flutter 앱을 SQL Server 데이터베이스에 연결하는 방법
  • SQL Server 통합을 활용한 백엔드 서비스 구축
  • Dart에서 고속 데이터베이스 쿼리 수행
  • 기존 SQL Server 시스템을 Dart 기반 솔루션으로 마이그레이션하기
  • SQL Server 접근을 활용한 크로스 플랫폼 데스크톱 애플리케이션 개발

주요 기능

  • 32비트 및 64비트 시스템을 지원합니다
  • 고성능 데이터베이스 작업
  • 보안 연결 처리
  • 오픈소스이며 커뮤니티 주도
  • SQL 상호작용을 위한 간단하고 직관적인 API

적합한 대상

  • SQL Server를 대상으로 하는 Dart 개발자
  • 신뢰할 수 있는 데이터베이스 접근을 필요로 하는 백엔드 서비스
  • SQL Server에서 빠른 데이터 검색이 필요한 응용 프로그램
  • Dart를 사용하는 크로스플랫폼 데스크톱 앱 개발자
  • 기존 SQL Server 인프라를 갖춘 Dart로 이전하는 팀

고려 사항

  • SQL Server 전용
  • 모바일 플랫폼에 대한 공식 지원 없음
  • 완전한 기능을 위해 네이티브 종속성이 필요합니다
  • 플랫폼별 빌드가 필요할 수 있습니다
  • 비-SQL Server 데이터베이스에는 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

dart_mssql

High Performance Microsoft SQL Server (MS-SQL Server) Driver for Dart (32 & 64bits)

Important

  • This package is not suitable for flutter or web projects. It only runs on server-side apps.
  • It works only on Windows (32bits or 64bits)
  • You have to install OLE DB Driver
  • You have to install Microsoft Visual C++ Redistributable
  • dart_mssql_32.dll (32-bit) and dart_mssql_64.dll (64-bit) are the compiled versions of the driver. Rename to "dart_mssql.dll" according to your needs and copy it to the main directory of your project.

Example Usage

Demo code to perform Raw SQL queries

import 'dart:io';
import 'package:dart_mssql/dart_mssql.dart';

void main() async {
  SqlConnection connection = SqlConnection(host:"SERVERNAME", db:"DBNAME", user:"USERNAME", password:"PASSWORD");
  String cmd = "select email from usuario where id_usuario=?";
  
  SqlResult result = connection.execute(cmd,[4]);
  result.rows.forEach((e) {
    print("${e.email}");
  });
  print("end of printing.");
  connection.close();
  stdin.readLineSync();
}

Troubleshooting

Problem:
The specified module could not be found.
error: library handler failed

Cause:
Missing installing Microsoft OLE DB Driver OR missing dart_mssql.dll file into project main directory OR missing Microsoft Visual C++ Redistributable

Solution:
Copy dart_mssql.dll file into project main directory.


Problem:
%1 is not a valid Win32 application.
error: library handler failed

Cause:
incorrect dart_mssql.dll version (32 bits with dart VM 64 bits or vice versa)

Solution:
Copy correct dart_mssql.dll file into project main directory.


Compiling with Microsoft Visual Studio 2017 Community Edition

IF AND ONLY IF you want to compile library source code (C++ part) follow the instructions below:

  • Before compile, you have to install Windows 10 SDK on your Microsoft Visual Studio 2017 Community Edition
  • Open solution file dart_mssql\cpp\dart_mssql.sln with Microsoft Visual Studio 2017 Community Edition
  • On "Solution Explorer" Panel right click on dart_mssql project and select "Rebuild"
  • Put the generated dart_mssql.dll file into your project main folder (same folder of your pubspec.yaml file)
  • Be sure to have correct dart-sdk\bin folder (32 or 64 bits) in VC++ Directories -> Library Directories. Change "F:\DartSDK64\dart-sdk\bin" to your location
  • Be sure to have correct dart.lib version (32 or 64 bits) in Linker -> Input -> Additional Dependencies. Change "F:\DartSDK64\dart-sdk\bin\dart.lib" to your location

카테고리

의존성

의존성 목록 6 개

  • collection^1.14.11
  • meta^1.1.6
  • sql_recase^0.2.1
  • sql_result^0.2.2
  • sql_utils^0.2.0
  • string_utils^0.2.0

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.