Vino

ภาพหน้าจอของซอฟแวร์:
Vino
รายละเอียดซอฟแวร์:
รุ่น: 0.1.0
วันที่อัพโหลด: 20 Feb 15
ผู้พัฒนา: Hsiaoming Yang
การอนุญาต: ฟรี
ความนิยม: 2

Rating: nan/5 (Total Votes: 0)

Vino ไม่ออม ใช่มันเป็นความจริงก็ไม่ได้ออม
เริ่มต้น
มุมมองอย่างรวดเร็วด้วย Vino:
การติดตั้ง #
# dB = Vino ('เครื่องยนต์: // ผู้ใช้: passwd @ host: พอร์ต / ฐานข้อมูล')
ฐาน = Vino ('SQLite: //db.sqlite')
# แบบสอบถาม
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). เรียก ()
# สร้าง
db.table ('ใช้') สร้าง. (ชื่อผู้ใช้ = 'lepture', เว็บไซต์ = 'http: //lepture.com')
db.commit ()
# การปรับปรุง
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). ปรับปรุง (ชื่อผู้ใช้ = 'Hsiaoming ยาง')
db.commit ()
# ลบ
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). ลบ ()
db.commit ()
การตั้งค่า
เราจะสนับสนุน sqlite3 และ MySQL โดยขณะนี้
SQLite
SQLite กับเส้นทางสัมพันธ์:
ฐาน = Vino ('SQLite: //relative/path/db.sqlite')
SQLite กับเส้นทางแน่นอน:
ฐาน = Vino ('SQLite: ///root/path/db.sqlite')
โปรดทราบว่ามันแตกต่างจาก SQLAlchem​​y
MySQL
MySQL กับข้อมูลทั้งหมด:
ฐาน = Vino ('MySQL: // lepture: 123456 @ localhost: 3306 / ทดสอบ')
MySQL มีข้อมูลน้อย
ฐาน = Vino ('MySQL: // lepture @ localhost / ทดสอบ')
พอร์ตเริ่มต้นคือ 3306
โปรดทราบว่ามันเป็น utf8 โดยค่าเริ่มต้น
แบบสอบถาม
ค้นหาข้อมูลทั้งหมด:
db.table ('ใช้'). เรียก ()
ค้นหาข้อมูลที่ระบุทั้งหมด:
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). เรียก ()
ค้นหาข้อมูลครั้งแรก:
# 1 เรียกจะไม่กลับรายการ
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). เรียก (1)
ข้อ จำกัด ในการสอบถาม:
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). เรียก (5, offset = 3)
กรองหลาย:
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture' อายุ = 20) .fetch ()
กรองขั้นสูง:
# เช่นเดียวกับ Django
db.table ('ใช้'). พบ (age__in = [20, 22]). เรียก ()
db.table ('ใช้'). พบ (age__gt = 20) .fetch ()
db.table ('ใช้'). พบ (age__lt = 20) .fetch ()
db.table ('ใช้'). พบ (age__gte = 20) .fetch ()
db.table ('ใช้'). พบ (age__lte = 20) .fetch ()
# เอกสารดูเพิ่มเติม
กรองขั้นสูงอื่น ๆ :
db.table ('ใช้'). พบ (age__ne = 20) .fetch () # ไม่เท่ากัน
db.table ('ใช้'). พบ (age__nin = [20, 22]). เรียก () # ไม่ได้อยู่ใน
# เอกสารดูเพิ่มเติม
เพื่อคำที่:
. db.table ('ใช้') พบ (อายุ = 20) .order ('- id'). เรียก ()
ลบ
ลบข้อมูลทั้งหมด:
db.table ('ใช้'). ลบ ()
db.commit ()
ลบข้อมูลที่ระบุ:
db.table ('ใช้'). พบ (ชื่อผู้ใช้ = 'lepture'). ลบ ()
db.commit ()

ต้องการ

  • หลาม

ซอฟต์แวร์ที่คล้ายกัน

ws2500
ws2500

2 Jun 15

ADOdb Lite
ADOdb Lite

3 Jun 15

StelsMDB
StelsMDB

20 Feb 15

ซอฟแวร์อื่น ๆ ของนักพัฒนา Hsiaoming Yang

Selection.js
Selection.js

10 Dec 15

yue.css
yue.css

12 May 15

ความคิดเห็นที่ Vino

ความคิดเห็นที่ไม่พบ
เพิ่มความคิดเห็น
เปิดภาพ!