Export and migrate your GAE Datastore data to SQL using Golang
Clone or download
Latest commit 5a2215b Feb 9, 2016


Check the blog post: http://www.sromku.com/blog/datastore-sql-migration

Run it yourself

go get -u github.com/sromku/datastore-to-sql/backup

Load the backup file into model

This script will load the backup file into 'Profile' model and print it

import (

func main() {
	backupPath := ".../output-0"
	backup.Load(backupPath, &Profile{}, nil,
		func(res interface{}) {
			profile, _ := res.(*Profile) // the loaded model

type Profile struct {
	Name   string `datastore:"name, noindex"`
	Email  string `datastore:"email"`
	Gender int `datastore:"gender, noindex"`