github.com/openfga/openfga@v1.5.4-rc1/assets/assets.go (about)

     1  // Package assets contains database migration scripts and test files
     2  package assets
     3  
     4  import "embed"
     5  
     6  const (
     7  	MySQLMigrationDir    = "migrations/mysql"
     8  	PostgresMigrationDir = "migrations/postgres"
     9  )
    10  
    11  // EmbedMigrations within the openfga binary.
    12  //
    13  //go:embed migrations/*
    14  var EmbedMigrations embed.FS
    15  
    16  // EmbedPlayground within the openfga binary.
    17  //
    18  //go:embed playground/*
    19  var EmbedPlayground embed.FS
    20  
    21  // EmbedTests within the openfga binary.
    22  //
    23  //go:embed tests/*
    24  var EmbedTests embed.FS