项目作者: linux-china

项目描述 :
Kotlin for MySQL Document Store
高级语言: Kotlin
项目地址: git://github.com/linux-china/KMyDocument.git
创建时间: 2018-06-13T03:42:22Z
项目社区:https://github.com/linux-china/KMyDocument

开源协议:

下载


Kotlin for MySQL document store

Setup

Please use “docker-compose up -d” to start MySQL 8.

Ports

  • 3306: traditional
  • 33060: X Protocol

Document Store

  • Schema: database name
  • Collection: almost like table
  • DbDoc: document
  • id: name should be “_id” with String type
  • jdbc url: mysqlx://127.0.0.1:33060/demo?user=root&password=password

MySQL Shell

Login

  1. mysqlsh --uri root@127.0.0.1

Operations in MySQL Shell

  1. JS> \use demo
  2. JS> db.createCollection("Account")
  3. JS> db.get_collections()
  4. JS> db.get_collections()
  5. JS> db.Account.find()

Reference