计算机与现代化

• 应用与开发 • 上一篇    下一篇

Go语言实现数据库驱动的方法

  

  1. 91404部队,河北秦皇岛066000
  • 收稿日期:2017-05-04 出版日期:2018-01-23 发布日期:2018-01-24
  • 作者简介:刘艳平(1990-),男,河北秦皇岛人, 91404部队助理工程师,硕士,研究方向:软件开发与测试。

Method of Developing Database Driven by Golang

  1. Unit 91404, PLA, Qinhuangdao 066000, China
  • Received:2017-05-04 Online:2018-01-23 Published:2018-01-24

摘要: Go语言是由Google公司组织发布的一门全新的开源语言,具有运行效率高和开发速度快等特点,良好的并发性使得Go语言在数据处理方面发挥着重要的角色。针对Go语言的研究资料不够丰富,关于数据库开发的文献较少。本文研究Go语言的标准包database/sql,driver和数据库工作原理,对driver包的核心接口的实现进行重点研究,并给出了应用程序中数据库操作的方法。

关键词: Go语言, 数据库驱动, 软件开发

Abstract:  Golang is a new open source language released by Google, which makes it easy to develop efficient software. High performance concurrency makes Go play an important role in data processing. This paper makes a study of the Go standard packages, database/sql, driver and the working principle of database, and focuses on the realization of the core interfaces of the driver package. At last, the method of database operation in Go program is studied.

Key words: Golang, database driver, software development

中图分类号: