摘要
Berkeley Db作为一款优秀轻便的嵌入式数据库,在实际中得到了广泛的应用,其提供了针对多种语言的API函数供开发者调用。Python是一种面向对象的解释型计算机程序设计语言,其具有强大而丰富的各类应用库,能够与其他编译型语言(C、C++等)轻松的结合在一起,可作为大型工业软件的补充。本文利用Berkeley,Db的为Python提供的API函数,设计了一款实时数据库,该数据库底层基于Berkeley,Db,应用层利用C++语言,构建了一个C/S模式的实时数据库结构,通过TCP/IP协议实现了局域网内多个客户端数据库访问。
As an excellent lightweight embedded database,Berkeley Db has been widely used in practice,which provides a variety of languages for the API function for developers.Python is an object oriented interpretation of computer programming language,which has a strong and rich in all kinds of application libraries with other compiled languages(C,C++ and so on),thus can be used as a supplement for large industrial software.A real-time database is designed in this article using API provided by python based on Berkeley Db,which the application layer uses C++ language and construct a real time database structure of C/S mode,where the client database access in local area network through TCP/IP protocol.
出处
《仪器仪表用户》
2017年第6期28-30,共3页
Instrumentation
基金
江苏省高等学校大学生实践创新训练计划项目(201611276035Y)